Skip to content

Why it matters

Hashes are the backbone of integrity, authentication, and content addressing. When a hash breaks, every layer built on top of it inherits the failure.

A container image is pulled by digest. A Git commit is identified by hash. A password is stored as a hash. A TLS certificate signs a hash of the handshake. A package manager verifies the hash of every dependency it downloads. None of these trust the source; they trust the digest. If the digest matches, the content is the same. If it does not, the content has been altered, corrupted, or substituted.

The distinction between a fast hash (SHA-256) and a password hash (bcrypt, Argon2) is the difference between a checksum and a credential store. Fast hashes are designed to be cheap so they can be computed at line rate. Password hashes are designed to be expensive so brute force is slow. Using the wrong one is a common and consequential mistake.