Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Collision Resistance

Direct answer

Collision resistance means it is practically impossible to find two different inputs with the same hash. MD5 and SHA-1 have lost it, so use SHA-256 or stronger for signatures and integrity.

When to use this

Use this when hash collisions matter for signatures or integrity.

First 30 seconds

1. Collision resistance: hard to find two inputs with the same hash.

2. Breaks allow forged certificates/documents.

3. Birthday bound: 2^(n/2).

4. Use ≥ 256-bit hashes.

5. Migrate quickly when weaknesses appear.

Operational verification

two inputs → same digest (should be infeasible)

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Scope / prerequisiteUse this when hash collisions matter for signatures or integrity.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Assuming collision resistance protects password hashes.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • MD5 and SHA-1 have practical collisions.
  • Use SHA-256 or stronger.
  • Collisions break signature trust.
Key checks
  • Algorithm collision status — SHA-2/3 secure, MD5/SHA-1 broken
  • Signature schemes using hashes — certificate algorithms
  • Use of HMAC vs plain hash — MAC design
ReferenceWhy it matters1 section · depth on demand

Why it matters

With a collision an attacker can make two documents (or certificates) with the same hash, get the harmless one signed and use the signature on the malicious one. Generic collision resistance is half the digest length: SHA-256 gives about 128-bit collision security.

AlgorithmCollision status
MD5Broken (seconds)
SHA-1Broken (practical, chosen-prefix)
SHA-256/384/512, SHA-3No known attacks
ReferenceHow it works2 sections · depth on demand

Real collision attacks

YearAttack
2004First MD5 collisions (Wang et al.)
2008Rogue CA certificate via MD5 collision
2012Flame malware forges Microsoft signature (MD5)
2017SHAttered — first SHA-1 collision
2020SHA-1 chosen-prefix collision (Shambles)

In depth

Collision resistance means it is computationally infeasible to find two different inputs that produce the same hash. It is what makes hashes safe for digital signatures, certificates and content addressing: if collisions can be created, an attacker can get a benign document signed and substitute a malicious one with the same hash.

AlgorithmCollision resistance
MD5Broken (seconds)
SHA-1Broken (practical attacks since 2017)
SHA-256Secure (~2^128 work)
SHA-3, BLAKE2/3Secure

The birthday paradox means collision resistance is about half the digest length in bits — a 256-bit hash gives 128-bit collision security, which is why shorter digests are not enough for long-term signatures.

ReferenceImportant terms & boundaries1 section · depth on demand

Security levels

PropertyAttack cost for n-bit hash
Preimage resistance~2ⁿ
Second preimage~2ⁿ
Collision resistance~2ⁿ/² (birthday bound)

So SHA-256 gives about 128-bit collision resistance. Signatures and certificates depend on collisions; HMAC and password hashing mostly on preimages.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

Authoritative/upstream documentation reviewed for bounded claims in Hashing → Collision Resistance. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/fips/180-4/upd1/final · confidence 94%
Confirmation

Confirm action

Continue?