liveBook · Manning

Collision-resistant hash function

A collision-resistant hash function is a cryptographic hash function for which finding two distinct inputs with the same output is computationally infeasible.

How 3 Manning books explain it

Real-World Cryptography

Collision resistance is the property that it is computationally infeasible to find two distinct inputs that produce the same hash output.

How it is used
Protects systems that need distinct inputs to remain distinguishable through their hash outputs.
How deep it goes
Defines attacker choice, contrasts second pre-image resistance, and explains digest-size limits without proving security.
Examples
Uses two-bit outputs, random input pairs, published MD5 and SHA-1 collisions, and a visual two-input-to-one-digest diagram.
What you can do after
Evaluate hash choices by attacker control, digest size, and known collision attacks.

Read how Real-World Cryptography explains collision-resistant hash function →

Hacking Cryptography

The property that it is computationally infeasible to find any two distinct inputs that produce the same hash output.

How it is used
Defines the security goal that prevents attackers from deliberately producing two different inputs with one digest.
How deep it goes
Explains unavoidable collisions, birthday attacks, file-format exploitation, and sponge capacity, but gives no executable attack procedure.
Examples
Uses shared birthdays, differently rendered PDFs, and SHA-3 or SHAKE parameter tables to make collision risk concrete.
What you can do after
Evaluate hash designs by comparing their stated collision-resistance level with birthday-attack expectations and construction parameters.

Read how Hacking Cryptography explains collision-resistant hash function →

Software Security for Developers

Collision resistance is the computational infeasibility of finding two distinct inputs that produce the same cryptographic hash value.

How it is used
Explains why cryptographic hashes can support computer-security tasks such as message integrity and authentication.
How deep it goes
Defines collision resistance and contrasts it with one-wayness, but defers the mathematics of hash-function design and assessment.
Examples
Uses SHA-256 outputs for lowercase “a,” uppercase “A,” and a 2.6 GB Ubuntu ISO.
What you can do after
Evaluate hash-function choices and select standardized, peer-reviewed implementations instead of creating a custom cryptographic hash.

Read how Software Security for Developers explains collision-resistant hash function →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.