Hash Lab

Unkeyed cryptographic

SHAKE128 / SHAKE256

SHA-3’s extendable-output functions, defined alongside the fixed-output SHA-3 variants in NIST FIPS 202 (2015). Same Keccak sponge, but the output is variable-length , you ask for any number of bits at finalization. The post-quantum cryptography deployment leans heavily on SHAKE for randomness extraction.

At a glance

VariantCapacitySecurityOutput
SHAKE128256 bits128-bitVariable, any length
SHAKE256512 bits256-bitVariable, any length

How XOFs differ from fixed-output hashes

A fixed-output hash like SHA3-256 produces exactly 256 bits. An XOF like SHAKE128 produces any number of bits , same security per bit up to the capacity, then degrades gracefully. This lets one primitive replace separate hash + KDF + DRBG calls.

Where it shows up

cSHAKE / KMAC / TupleHash / ParallelHash

NIST SP 800-185 builds four derived functions on top of SHAKE: cSHAKE (customizable / domain-separated SHAKE), KMAC (keyed MAC), TupleHash (hashes an ordered list of strings unambiguously), and ParallelHash (tree-parallel hashing for large inputs). All rely on SHAKE under the hood.

References

Visualize

SHAKE256 on your input

11 bytes · 0-bit digest

Hex digest

Bit grid (0 bits, teal = 1, slate = 0)

Byte pixel art (0 bytes, hue = byte value mod 360°)

Avalanche , flipping the lowest bit of the first input byte changed 0 of 0 output bits

Test Your Knowledge

Quick MCQ check on this algorithm

Start Quiz →

AI Summary

Summarize this page in your favorite LLM