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 →

Also covered in

What to know first

Related concepts

Questions about collision-resistant hash function

What is 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.

Which Manning books explain collision-resistant hash function?

Real-World Cryptography, Hacking Cryptography and Software Security for Developers.

What should I know before learning collision-resistant hash function?

Manning books that teach collision-resistant hash function usually introduce hash function and SHA-256 first.

What is the difference between collision-resistant hash function and hash-based signature scheme?

A collision-resistant hash function is a cryptographic hash function for which finding two distinct inputs with the same output is computationally infeasible. A hash-based signature scheme is a digital signature scheme whose security is based on cryptographic hash-function properties rather than algebraic number-theoretic assumptions.

What is collision-resistant hash function a kind of?

Collision-resistant hash function is a kind of hash function. A hash function is a deterministic function that maps input data to a hash value, typically of fixed size, for uses such as lookup, indexing, comparison, or integrity checking.

What is collision-resistant hash function part of?

Collision-resistant hash function is part of cryptographic hash. A cryptographic hash is a fixed-length digest computed from input data by a function designed to resist practical preimage, second-preimage, and collision attacks.

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.