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

Quick quiz

Test yourself on shake

10 multiple-choice questions. Pick an answer for each, then submit to see explanations.

  1. Q1.What does SHAKE stand for?

  2. Q2.SHAKE outputs:

  3. Q3.Standard:

  4. Q4.SHAKE128's capacity (security target):

  5. Q5.SHAKE256's capacity:

  6. Q6.Underlying permutation:

  7. Q7.Post-quantum signature scheme using SHAKE:

  8. Q8.cSHAKE adds:

  9. Q9.Which Wikipedia family does SHAKE belong to?

  10. Q10.Year SHAKE was standardized:

0 of 10 answered