What is SHAKE128?
SHAKE128 is an extendable-output function (XOF) in the SHA-3 cryptographic family, standardized by NIST in 2015, offering a security strength of 128 bits. Unlike fixed-length hash functions, SHAKE128 uses the Keccak sponge construction to generate outputs of any desired length (from a few bits to kilobytes or more), making it ideal for applications requiring variable-length cryptographic digests. This free online SHAKE128 Hash Generator lets you compute SHAKE128 hashes directly in your browser with no upload, no sign-up, and complete privacy—your data never leaves your device.
How SHAKE128 works
SHAKE128 uses the sponge construction, a cryptographic design that absorbs input data and then squeezes out output of any desired length. Here's how it works:
- Initialization: Start with a 1600-bit state, all zeros.
- Absorption Phase: Your input message is padded and fed into the state in 1344-bit (168-byte) blocks. Each block is XORed into the state, then the Keccak-f permutation is applied.
- Squeezing Phase: Output is extracted from the state in 1344-bit chunks. After each chunk, the permutation is applied again to generate the next chunk.
- Output: You get the hash in hexadecimal format, with a length you control.
Example structure: Input "hello" is absorbed into the state, then the sponge is squeezed to produce, say, 256 bits (32 bytes) of hash output in hexadecimal. The output depends on every bit of the input—changing even one character completely changes the hash.
How to use
- Type or paste your text into the input box.
- The SHAKE128 hash is calculated automatically as you type.
- Choose your output encoding (Hex or Base64) if needed.
- Click Copy to copy the digest to your clipboard.
Common uses
- Generating variable-length cryptographic digests for custom security requirements or application-specific needs
- Digital signatures and authentication where flexible output lengths improve compatibility with RSASSA-PSS and ECDSA frameworks
- Deriving cryptographic keys or random bytes of arbitrary length from passwords or seed material
- Building mask generation functions (MGF) for optimal asymmetric encryption padding (OAEP) in public-key cryptography
- Creating checksums and integrity verification for files where output size can be tailored to expected collision rates