Apex › Cryptography

SHA-256 internals

A hash is a one-way fingerprint of data: feed SHA-256 any input — one letter or a whole movie — and it returns the same fixed 256-bit string every time; flip a single input bit and the output looks entirely different; and you cannot run it backwards to recover the input. Those properties — deterministic, fixed-size, avalanche, irreversible, and collision-resistant (no two inputs should ever share a fingerprint) — are why hashes underpin passwords, digital signatures, and integrity checks. Below, watch how SHA-256 does it: pad and block the message, fold each block into the 256-bit state through 64 compression rounds, and see why the digest is that state — the quirk behind length-extension attacks.

More in Cryptography