Skip to content
uencoder

BLAKE2

BLAKE2 is a hash function designed by Jean-Philippe Aumasson et al.; faster than MD5 with security comparable to SHA-3, a high-performance alternative to SHA-2/3.

Purpose

Delivers higher software performance than SHA-2/3 while keeping a modern security level.

Mechanism

An improvement of BLAKE (a SHA-3 finalist), using ChaCha-style ARX quarter-rounds over a state of sixteen 64-bit words. BLAKE2b outputs 512 bits (optimized for 64-bit platforms); BLAKE2s outputs 256 bits (32-bit platforms).

Use cases

  • High-performance file hashing
  • WireGuard public key hashing
  • Default fast hash in Python hashlib
  • Content-addressed storage

Examples

  • Input
    hello
    Output
    e4cfa39b41e2b1c8e1c8e1c8...

    BLAKE2b-512 output

Common errors

Misusing BLAKE2 as a password hash (no salt/iterations)
Use Argon2 or a BLAKE2-wrap KDF

Related terms

Related tools

References