Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceAlgorithmsblake2

BLAKE2 (BLAKE2b, BLAKE2s)

A hash function family described in RFC 7693, with BLAKE2b for 64-bit and BLAKE2s for 8 to 32-bit platforms, and a built-in keyed mode. It is used in Argon2, WireGuard, Zcash and the libsodium generic hash. Grover's search would roughly halve its effective security, so 256-bit outputs stay adequate.

In short

What a quantum computer changes.

Quantum effect
Weakened by Grover's search
Family
HashRests on hash function security.
What it means
Grover's algorithm searches an unstructured space in roughly the square root of the usual number of steps. Against a symmetric key or a hash preimage, that roughly halves the effective security in bits: a 128-bit key gives about 64 bits of security against it. In practice the answer is size, not replacement. Keys and outputs of 256 bits stay adequate. Grover's search also needs a long, sequential run on a fault-tolerant machine and does not split well across many machines, so the effect is a smaller margin, not a break.

This describes the family, not any project that uses it.

25 in the catalogue

Packages that provide it

Packages that provide BLAKE2 (BLAKE2b, BLAKE2s)
PackageProvides
@noble/hashesnpmPure TypeScript hash, MAC and KDF library: SHA-1, SHA-2, SHA-3 and Keccak, BLAKE2 and BLAKE3, RIPEMD-160, HMAC, HKDF, PBKDF2, scrypt and Argon2.
hash-wasmnpmHash and password-hashing functions compiled to WebAssembly, including SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, RIPEMD-160, HMAC, PBKDF2, scrypt, bcrypt and Argon2.
blakejsnpmPure JavaScript BLAKE2b and BLAKE2s hash functions following RFC 7693.
libsodium-wrappersnpmlibsodium compiled to WebAssembly and JavaScript with generated wrappers: X25519, Ed25519, XSalsa20-Poly1305 and ChaCha20-Poly1305 encryption, BLAKE2b, SHA-2, SHA-3, HMAC, Argon2 password hashing, ML-KEM-768 and the X-Wing hybrid KEM.
libsodium-wrappers-sumonpmThe sumo build of libsodium.js: everything in libsodium-wrappers plus scrypt password hashing and lower-level functions.
sodium-nativenpmLow-level native Node.js bindings to libsodium: X25519, Ed25519, XSalsa20-Poly1305 and ChaCha20-Poly1305 encryption, BLAKE2b, SHA-2, HMAC, Argon2 and scrypt, plus a PBKDF2-SHA512 extension.
ethereum-cryptographynpmCollection of the primitives Ethereum uses: secp256k1, BN254 and BLS12-381 curves, Keccak, SHA-2, RIPEMD-160, BLAKE2b, PBKDF2, scrypt, AES, BIP-32, BIP-39 and random bytes.
@zk-kit/eddsa-poseidonnpmEdDSA signatures on the Baby Jubjub curve with Poseidon hashing, compatible with Circom circuits.
@aztec/bb.jsnpmWebAssembly and native build of the Barretenberg prover with UltraHonk proving over BN254, Pedersen, Poseidon2 and BLAKE2s hashing, ECDSA on secp256k1 and P-256, Grumpkin Schnorr signatures and AES.
@polkadot/util-cryptonpmPolkadot crypto utilities: sr25519, Ed25519 and secp256k1 keys and signatures, BLAKE2, Keccak, SHA-2, HMAC, PBKDF2, scrypt, NaCl secretbox and encrypted JSON.
@polkadot/wasm-cryptonpmWebAssembly build of the Rust primitives behind @polkadot/util-crypto: sr25519, Ed25519, secp256k1, BLAKE2b, Keccak, SHA-2, HMAC, PBKDF2, scrypt and BIP-39.
@mysten/suinpmSui TypeScript SDK with Ed25519, secp256k1, secp256r1 and ML-DSA-65 key pairs, passkeys, multisig, BLAKE2b addresses and zkLogin Poseidon hashing.
@taquito/signernpmTezos in-memory signer for Ed25519, secp256k1, P-256, BLS and ML-DSA-44 keys, with BIP-39 mnemonics and PBKDF2 and NaCl secretbox encrypted secret keys.
botancrates.ioRust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms.
libcruxcrates.ioRe-export crate for the libcrux library of formally verified implementations, including ML-KEM, ML-DSA, X25519, P-256 ECDSA and ECDH, Ed25519, RSA-PSS, AES-GCM, ChaCha20-Poly1305, SHA-2, SHA-3, BLAKE2, HMAC, HKDF and HPKE.
orioncrates.ioPure Rust library offering ML-KEM, ML-DSA, X-Wing, HPKE, X25519, (X)ChaCha20-Poly1305, BLAKE2b, BLAKE3, SHA-2, SHA-3, HMAC, HKDF, PBKDF2, Argon2 and scrypt.
dryoccrates.ioPure Rust libsodium-compatible library with crypto_box, secretbox, Ed25519 signatures, BLAKE2b, SHA-2, SHA-3, HMAC, HKDF, Argon2 password hashing, ML-KEM-768, X-Wing and HPKE sealed boxes.
sodiumoxidecrates.ioRust bindings to libsodium: X25519 crypto_box, XSalsa20-Poly1305 secretbox, Ed25519 signatures, ChaCha20-Poly1305 and AES-256-GCM AEADs, SHA-2, BLAKE2b, HMAC, Argon2 and scrypt password hashing.
libsodium-syscrates.ioRaw FFI bindings to the libsodium C library, used by sodiumoxide.
blake2crates.ioPure Rust BLAKE2b and BLAKE2s hash functions.
blake2b_simdcrates.ioBLAKE2b and BLAKE2bp hash functions with SIMD implementations selected at run time.
snowcrates.ioPure Rust implementation of the Noise Protocol Framework with 25519, AES-GCM, ChaCha20-Poly1305, SHA-2, BLAKE2 and optional P-256 and BLAKE3.
ark-crypto-primitivescrates.ioArkworks building blocks for SNARK circuits: Pedersen and Bowe-Hopwood hashes, Pedersen and BLAKE2s commitments, Poseidon sponges, a SHA-256 CRH, Merkle trees, a BLAKE2s PRF and Schnorr signatures, with optional R1CS constraints.
revm-precompilecrates.ioEVM precompiled contracts for revm: ecrecover (secp256k1), P-256 verification (RIP-7212), SHA-256, RIPEMD-160, the BLAKE2 compression function, modexp, BN254 operations and pairing, BLS12-381 operations (EIP-2537) and KZG point evaluation (EIP-4844).
sp-corecrates.ioShared Substrate and Polkadot SDK types, including sr25519, Ed25519 and secp256k1 ECDSA key pairs and signatures and Blake2 and Keccak hashers.

2 listed

Sources

  1. RFC 7693: The BLAKE2 Cryptographic Hash and Message Authentication Code (MAC)rfc-editor.orgRetrieved 3 December 2026
  2. BLAKE2blake2.netRetrieved 3 December 2026

Full record

Identifier
blake2
Kind
hash
Family
Hash
Rests on
hash function security
Quantum effect
Weakened by Grover's search

Standards