A simple SHA1 hash function for JavaScript supports UTF-8 encoding.
shasha1encryptioncryptographyHMAC