Skip to content
shellhacks.dev

SHA-3 Hash Generator

Hash text or hex bytes with SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, SHAKE256 and Ethereum's Keccak-256.

Free · No sign-up · Your inputs stay in your browser

Input

Hash with SHA-3, SHAKE and Keccak-256

Output

Digests (hex)

SHA3-224

d15dadceaa4d5d7bb3b48f446421d542e08ad8887305e28d58335795

SHA3-256

69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04

SHA3-384

7063465e08a93bce31cd89d2e3ca8f602498696e253592ed26f07bf7e703cf328581e1471a7ba7ab119b1a9ebdf8be41

SHA3-512

01dedd5de4ef14642445ba5f5b97c15e47b9ad931326e4b0727cd94cefc44fff23f07bf543139939b49128caf436dc1bdee54fcb24023a08d9403f9b4bf0d450

Keccak-256 (Ethereum)

4d741b6f1eb29cb2a9b9911c82f56fa8d73b04959d3d9d222895df6c0b28aa15

SHAKE128 (256-bit output)

f4202e3c5852f9182a0430fd8144f0a74b95e7417ecae17db0f8cfeed0e3e66e

SHAKE256 (512-bit output)

2f671343d9b2e1604dc9dcf0753e5fe15c7c64a0d283cbbf722d411a0e36f6ca1d01d1369a23539cd80f7c054b6e5daf9c962cad5b8ed5bd11998b40d5734442

SHA-3 (FIPS 202) is the Keccak sponge with a domain-separation byte of 0x06; Ethereum adopted Keccak before that byte was added, so its Keccak-256 (0x01) gives different output from SHA3-256 for the same input. A library function named keccak256 is almost always the Ethereum one. Check against openssl dgst -sha3-256.

Runs in this browser. Nothing you paste is sent to a server.

SHA-3 is not Keccak-256

NIST standardised Keccak as SHA-3 in FIPS 202 after adding a domain-separation suffix. Ethereum adopted Keccak before that change, so its keccak256 differs from SHA3-256 for every input, including the empty string. A library function called keccak256 is almost always Ethereum's, and mixing the two is a common bug when computing function selectors or addresses.

When to use SHA-3

SHA-256 remains unbroken and faster in most software. SHA-3 is a different design, useful where a standard asks for it or as a hedge against a future weakness in SHA-2. SHAKE produces output of any length.

Share

Frequently asked questions

What is SHA3-256 of an empty string?
a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a. Keccak-256 of the empty string is c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470.
Can OpenSSL compute SHA-3?
Yes, OpenSSL 1.1.1 and later: openssl dgst -sha3-256 file, and -shake256 for SHAKE.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Go deeper

Suggested reading

Keep planning

Similar tools