Definition. Cryptographic hash functions

[comp1110-4P]

A cryptographic hash function is a hash function with an additional defining property: preimage resistance. This means that computing \(H(x)\) is easy, but recovering \(x\) from \(H(x)\) is computationally infeasible. Well-known examples include SHA-1 and MD5.

Cryptographic hash functions are also designed to produce avalanche effects: a tiny change to the input scrambles the output completely, so that \(H(x)\) and \(H(x')\) look unrelated even if \(x\) and \(x'\) differ by a single bit. This makes them useful for verifying integrity, storing passwords, and similar security applications.

bars magnifying-glass caret-down plus minus arrow-right xmark