A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding.
github.com/emn178/js-sha256
emn178/js-sha256