Hash functions compress arbitrary data into fixed-size digests. The security depends on three core properties: preimage resistance, second preimage resistance, and collision resistance.

Key properties

Common mistakes

Safer patterns

Next up: a quick lab for benchmarking hashes and comparing cost factors.

BACK TO BLOG ->