Skip to content
CryptoAcademy logo CryptoAcademy
Menu
Beginner Cryptography

SHA-256

A widely used hash function producing a 256-bit (64 hex character) digest.

SHA-256 at a glance
A hash function turns input of any length into a fixed 256-bit digest INPUT — ANY SIZE Hello Blockchain 17 bytes SHA-256 one-way compression no key · deterministic · fast DIGEST — ALWAYS 256 BIT 7f83b1657ff1fc53b92dc1814 8a1d65dfc2d4b1fa3d677284 addd200126d9069 64 hexadecimal characters Change one character in the input and the entire digest changes. Going back from digest to input is computationally infeasible — hashing is one-way.

In simple terms

SHA-256 always outputs 256 bits, no matter how big or small the input is. Bitcoin uses it everywhere.

Analogy

A notary stamp that produces a unique, unforgeable reference for any document.

Going deeper

SHA-256 belongs to the SHA-2 family (Dobbertin, 2001): a Merkle–Damgård construction processing 512-bit blocks with six boolean functions and 64 round constants per block. Its 256-bit output gives a ~128-bit collision security margin under the birthday bound.

Common mistake

A common error is treating SHA-256 as encryption and expecting to "decrypt" a hash.

Share this page

Send this link to a friend, or scan the QR code to open it on your phone.