I implemented SHA-256 in pure Motoko. Hope to get this into the standard library. For now, please find it on my GitHub.