BLAKE2s Hash Generator

Compute a BLAKE2s digest (up to 256 bits)

Ad placeholder (leaderboard)

What this BLAKE2s generator does

This tool computes the BLAKE2s hash of any text, with a digest length you choose from 1 to 32 bytes. BLAKE2s is the compact, 32-bit member of the BLAKE2 family, well suited to embedded and constrained environments while remaining fast and secure on any platform.

How it works

BLAKE2s (RFC 7693) processes 64-byte blocks using eight 32-bit state words and eight 32-bit initialisation-vector words. The chosen digest length is folded into the first IV word as a parameter block, so each output size is its own hash. Each block runs ten rounds of the G mixing function — 32-bit additions, XORs, and right-rotations by 16, 12, 8, and 7 bits — driven by the SIGMA message-permutation schedule. The final block sets the last-block flag, and the low bytes of the eight state words form the digest. All arithmetic is kept to 32 bits using unsigned masking in browser JavaScript.

Tips and notes

  • BLAKE2s tops out at a 256-bit (32-byte) digest; use BLAKE2b when you need 512 bits.
  • The rotation constants (16, 12, 8, 7) differ from BLAKE2b’s (32, 24, 16, 63) — that is the core word-size difference.
  • Example: BLAKE2s-256 of the empty string is 69217a3079908094e11121d042354a7c1f55b6482ca1a51e1b250dfd1ed0eef9.
  • A single changed byte changes the entire digest (avalanche effect).
Ad placeholder (rectangle)