Compute a SHA-3 (Keccak sponge) digest with selectable output length: 224, 256, 384, or 512 bits. SHA-3 is the FIPS 202 standard and uses a different internal design from SHA-2, making it a useful alternative when protocols ask specifically for SHA-3 or when diversity of hash algorithms matters.
Algorithm
SHA-3 absorbs the message into a Keccak-f[1600] sponge and squeezes out the requested bit length. This tool uses crypto-js SHA-3 with the chosen outputLength and returns hex. Default demos often use 512-bit output; shorter lengths truncate the sponge output accordingly while remaining distinct algorithms in the SHA-3 family.
When to use it
- Protocols or homework that mandate SHA-3 instead of SHA-2
- Side-by-side comparison of digest lengths for the same plaintext
- Experimenting with post-SHA-2 hash options without installing CLI tools
Limitations
SHA-3 is not a drop-in wire-compatible replacement for SHA-2 in every standard—verify what your peer expects. Raw digests are still unsuitable as password hashes. Implementation speed in JavaScript is slower than native Web Crypto SHA-2 for large payloads.
Example
Hello with SHA-3-512 yields c33fede18a1ae53ddb8663710f8054866beb714044fce759790459996196f101d94dfc7bd8268577f7ee3d2f8ff0cef4004a9632227db84df62d2b40682d69e2.