Hash Lab

Cryptographic

BLAKE2b

A 64-bit-optimized hash function derived from BLAKE, the SHA-3 finalist. Designed in 2013 by Aumasson, Neves, Wilcox-O’Hearn, and Winnerlein. Faster than SHA-2 and SHA-3, immune to length-extension, and has a built-in keyed mode that replaces HMAC.

At a glance

Output1-512 bits (typically 256 or 512)
Block size1024 bits
Word size64 bits
ConstructionHAIFA + ChaCha-like compression
Rounds12
StandardRFC 7693
Collision security2output/2 generic
Length extensionNo
StatusModern, recommended

BLAKE2 variants

Built-in features

Where it is used

Internal structure

BLAKE2b borrows the G function from ChaCha (itself derived from Salsa20), arranged in a 4×4 grid of 64-bit words. Each round applies 8 G calls (column step then diagonal step). Twelve rounds keep BLAKE2b safe with comfortable margin while delivering ~1–3 GB/s on modern CPUs.

The HAIFA construction adds a counter and a final-block flag to each compression call. That extra context is what frees BLAKE2 from length-extension while keeping a single-pass streaming structure.

Try it

The multi-algorithm hasher includes BLAKE2b-512. The comparator shows its throughput against SHA-256, SHA-3-256, and BLAKE3 in this browser.

References

Visualize

BLAKE2b-512 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 blake2b

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

  1. Q1.What construction does BLAKE2 use?

  2. Q2.Which RFC standardizes BLAKE2?

  3. Q3.What is BLAKE2b-512's maximum output size?

  4. Q4.How many rounds does BLAKE2b use?

  5. Q5.Does BLAKE2 have a built-in keyed mode?

  6. Q6.Which password-hashing function uses BLAKE2b internally?

  7. Q7.What is the original BLAKE (from which BLAKE2 descends)?

  8. Q8.Which library defaults to BLAKE2b for `generichash`?

  9. Q9.Does BLAKE2 suffer from length-extension?

  10. Q10.BLAKE2s vs BLAKE2b, which is faster on 32-bit CPUs?

0 of 10 answered