jsSHA

About

jsSHA is a JavaScript/TypeScript implementation of the entire family of SHA hashes as defined in FIPS PUB 180-4, FIPS PUB 202, and SP 800-185 (SHA-1, SHA-224, SHA3-224, SHA-256, SHA3-256, SHA-384, SHA3-384, SHA-512, SHA3-512, SHAKE128, SHAKE256, cSHAKE128, cSHAKE256, KMAC128, and KMAC256) as well as HMAC as defined in FIPS PUB 198-1. jsSHA is also 100% cross-browser compatible and works with Node.js.

Newest Release / Download

As of 4 August 2023, the newest release is v3.3.1 and can be found at GitHub.

Demo

Be aware that if JavaScript is disabled in your browser there is the possibility that information entered into the below fields may be transmitted to the GitHub web servers. Ensure that JavaScript is enabled to prevent this possibility.

Hashing Demo

Simply insert your text to be hashed, input type, the SHA variant you wish to use, and the output format.
Note: You may have to scroll the output text for longer length hashes

HMAC Demo

Simply insert your text to be hashed, text type, key, key type, the SHA variant you wish to use, and the output format.
Note: You may have to scroll the output text for longer length hashes