Cryptographic hash functions for JavaScript