Browser Labs
Collision & Birthday Demo
Compare MD5, SHA-1, and SHA-256 collision resistance and explore the Birthday Paradox.
$ collision demonstration Read the Collision Guide
Explore hash collisions and understand why some algorithms are cryptographically broken. See how different inputs can produce the same hash output.
A collision occurs when two different inputs produce the same hash output. This is a fundamental weakness in cryptographic hash functions.
Collisions can be exploited to create fake documents, bypass security checks, or forge digital signatures. The goal is to make collisions computationally infeasible.
- 🔴 MD5: Broken - collisions found in 2004
- 🟡 SHA-1: Weak - collisions found in 2017
- 🟢 SHA-256: Secure - no collisions found
- • Use the prefill buttons to try real collision examples
- • Switch between algorithms to see security differences
- • Try the known collision examples (MD5/SHA-1)
- • Use the random collision finder to demonstrate birthday paradox
Quick Collision Analysis
01 Why This Matters & 30-Second Experiment Tap to expand plain-English guide & CLI command
A collision happens when two different inputs produce the exact same hash. Because of the Birthday Paradox, an n-bit hash offers 2^(n/2) collision resistance, and structural flaws broke MD5 and SHA-1 completely.
- Explore why MD5 is unsafe for digital signatures and certificates.
- Test the Birthday Paradox calculator to see why collisions appear much sooner than naive intuition predicts.
- Compare SHA-256 against MD5 and SHA-1 to see why 2^128 collision work remains out of reach.
openssl dgst -sha256 README.md # Recommended