← Cryptography guide

K054 / Hashes, MACs and key derivation

BLAKE3

BLAKE3 hash · Survey date 2026-12-05

BLAKE3 is specified as a fast, highly parallelizable cryptographic hash primitive.

CRYPTOGRAPHY LAB / K054

Cryptography Lab · BLAKE3

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Limited implementation

BLAKE3-256 (single chunk, unkeyed)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
BLAKE3 is specified as a fast, highly parallelizable cryptographic hash primitive. Source document ↗
Classification and reversibility
One-way hash; cannot reverse or decrypt digest to recover input. Source document ↗
Key or secret requirements
Keyless basic hash; keyed mode adds a 32-byte secret key. Source document ↗
Operating principle and structure
Binary-tree mode based on a reduced-round BLAKE2 compression function. Source document ↗
Key size, block size and parameters
Default output 32 bytes, key 32 bytes, block 64 bytes, chunk 1024 bytes. Source document ↗
Security strength and recommendation
128-bit security like BLAKE2s and 256-bit default output. Source document ↗
Known attacks and vulnerabilities
Best published collision attacks concern reduced rounds (4–5). Source document ↗
Standards and certification
Neither NIST nor IETF RFC standard. Source document ↗
Typical uses
File integrity, content addressing and checksums. Source document ↗
Implementations, libraries and tools
Official Rust implementation available. Source document ↗
Decryption or decoding
No decryption/decoding; one-way digest cannot recover original. Source document ↗
Advantages
Much faster than SHA-256 in software, parallelizable with cores and SIMD. Source document ↗
Limitations and cautions
Not NIST/IETF standardized; caution with regulatory/interoperability requirements. Source document ↗
Distinguishing encryption, encoding and hashing
One-way hash, not decryptable/decodable like encryption or encoding. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Input produces a default 32-byte digest; same input yields same output. Keyed mode uses a 32-byte secret for MAC/PRF; verify by recomputing with identical input/key.

Procedure

Hash file/original and store/send digest; recipient rehashes and compares. Securely manage 32-byte keyed-mode key; recompute MAC with same key. BLAKE3 provides no encryption/decryption; use AEAD for confidentiality and separate Base64 encoding.

Scenario

Publish digest for large files and verify downloads; tree structure can support streaming partial verification. Use keyed mode with 32-byte key for server-to-server message authentication.

Pitfalls and alternatives

Do not decrypt hashes or insert secrets into ordinary hashes; choose unkeyed integrity hashing or keyed MAC appropriately. Check regulatory/FIPS approval; use vetted AEAD/KDF instead of custom encryption from hashes.

References