SHA-3, Keccak, SHAKE & KMAC Calculator
Calculate SHA-3, Keccak, SHAKE and SP 800-185 hashes.
How to use
For TupleHash, enter ["ab","c"] as a JSON array and choose UTF-8. Changing the tuple to ["a","bc"] changes the digest even though the concatenated text is the same.
FAQ
Where are KMAC keys and customization strings used?
The selected algorithm consumes its inputs, including KMAC keys and customization strings, in the browser. No inputs are sent to a hashing service.
What is supported?
SHA-3 and Keccak use fixed digest sizes. SHAKE and SP 800-185 modes use 1–512 output bytes. Customization uses UTF-8, KMAC keys use Hex, and files are limited to 8 MiB. TupleHash accepts an ordered JSON array of strings instead of a file.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Compare SHA-3/SHAKE with Node crypto and Keccak/cSHAKE/KMAC/TupleHash/ParallelHash, including XOF variants, with stored Python fixtures. Python separately constructs SP800-185 framing for the XOF and ParallelHash cases. TupleHash also compares equivalent UTF-8, Hex and Base64 JSON tuple inputs.
- Comparison reference
- Node.js 24.22.1 crypto (OpenSSL 3.5.9); PyCryptodome 4.3.0 stored fixtures with independent SP800-185 framing in scripts/generate-completion-fixtures.py.
- Verification scope
- Covers selected digest lengths, customization cases and TupleHash encodings. The Python comparisons use stored fixtures.
Test source and cases (select a file to read it)
-
completion-tools.test.js
- sha3-extensions: PyCryptodome customization fixtures and Node SHA3 SHAKE
- TupleHash parses the JSON array before applying Hex or Base64 to each item
- Secret fields start empty and fixed vectors are confined to the explicit example action
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.