Hash Lab

Tool

Algorithm Comparator

Pick up to five algorithms and see specifications, security bits, and a live throughput benchmark side-by-side. Useful for “which hash should I pick for X” decisions.

Pick up to 5 algorithms to compare:

PropertyMD5SHA-256SHA3-256BLAKE3-256
Output bits128256256256
Block size (bits)51251210881024
Rounds6464247
ConstructionMerkle-Damgård + Davies-MeyerMerkle-Damgård + Davies-MeyerKeccak spongeMerkle tree of BLAKE2-style compression
Year1992200120152020
DesignerRonald RivestNSABertoni, Daemen, Peeters, Van AsscheO'Connor, Aumasson, Neves, Wilcox-O'Hearn
StandardRFC 1321NIST FIPS 180-4NIST FIPS 202,
Collision sec.2^182^1282^1282^128
Preimage sec.2^1232^2562^2562^256
Length-extensionyes (avoid raw MAC)yes (avoid raw MAC)nono
Statusbrokenokmodernmodern
Primary usesLegacy file checksums, Historical TLS / signaturesTLS, Bitcoin (SHA-256d), Git (transitioning), HMAC-SHA-256, JWT HS256Ethereum (note: uses Keccak-256, not SHA3-256 final), TLS optionalFile integrity at scale, Build systems, Content-addressing
One-linerFirst widely-used 128-bit hash; collisions trivial today.The workhorse hash. Vulnerable to length-extension when used naively.Drop-in alternative to SHA-256 with a different construction.Parallel, tree-based; the fastest secure hash on modern CPUs.
Throughput

4 MiB

run benchmarkrun benchmarkrun benchmarkrun benchmark

Times are wall-clock in this browser tab. Two passes are run; the first is discarded as warm-up.

How to read this

  • Collision security follows the birthday bound: output_bits / 2. A status of broken reflects a real-world attack better than this bound.
  • Length-extension is a property of the construction. Merkle-Damgård hashes leak it; sponge (SHA-3), HAIFA (BLAKE2/3), and truncated MD variants (SHA-512/256, SHA-384) do not.
  • Throughput is measured in this browser tab on a buffer of pseudo-random data. SIMD-using algorithms (BLAKE3, BLAKE2b) win big on capable CPUs; smaller hashes (MD5) finish fast simply because each block does less work.

FAQ

Frequently asked questions