rollup of cryptojs's sha256 hashing function