Hash Collision
Updated 2026-08-06
Summary
A hash collision occurs when two different inputs produce the same hash value, which in security contexts means forgery or verification failure.
Definition
A hash collision occurs when a hash function maps two distinct inputs to the same output. Collisions are unavoidable in principle by the pigeonhole principle, since the output space is smaller than the input space. What matters in practice is whether collisions can be found efficiently: a secure cryptographic hash makes deliberate collisions computationally infeasible, while MD5 and SHA-1 have both been broken by practical collision attacks. Collision resistance is therefore the property being engineered.
Introduction
How to use
- Check resolution: ask how many distinct inputs your evaluation collapses into one verdict. - Test for forgery: determine whether someone can construct an input that passes as another. - Add dimensions: distinguish cases the metric currently merges into a single score.
Mechanism
Any scoring or hashing scheme maps a large space of inputs into a smaller space of outputs, so distinct cases necessarily share a result. When that mapping is public and cheap to compute, an adversary can search for an input that produces a chosen output and pass it off as the original. Collision resistance raises the cost of that search beyond what an attacker can afford.
Practice
In progress 0/1Practice this model in one real situation:
Cases
- MD5 and SHA-1 have both been shown vulnerable to practical collision attacks, prompting migration to stronger functions.
- Employees with very different contributions can produce identical scores under a coarse performance rating.
Common pitfalls
- Assuming any collision can be found easily, when resistance depends on how costly the search is.
- Relying on a single coarse metric to distinguish cases it cannot separate.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Hash_collisionverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS