Market Cap: 24h Vol: BTC: BTC Dom:
Gold: S&P 500: EUR/USD: Oil (BRENT):

SHA-256

SHA-256 was designed by the U.S. National Security Agency and published by NIST in 2001 as part of the SHA-2 family of hash functions, standardized today in FIPS 180-4. Feeding it a single character or an entire multi-gigabyte file always yields a 256-bit fingerprint, and changing even one bit of the input scrambles the output completely, a property known as the avalanche effect.

Internally, the algorithm pads the message to a multiple of 512 bits, splits it into blocks, and runs each block through 64 rounds of bitwise logic, modular addition, and rotation using a fixed set of round constants. The process is deterministic and one-way: there is no known method to reconstruct the input from the digest short of brute-force guessing, which is computationally infeasible given the size of the output space.

In Bitcoin, SHA-256 underpins nearly everything. Miners repeatedly hash a candidate block header together with a changing nonce, applying the function twice, until the result falls below the network's difficulty target, a race that now consumes over 800 exahashes per second across the global network. The same algorithm builds the Merkle tree that summarizes a block's transactions, and it feeds into the address-generation process for Bitcoin wallets alongside RIPEMD-160.

Beyond mining, SHA-256 secures TLS certificates, code signing, digital signatures, and file-integrity checks across the wider internet, not just crypto. Its dominance in Bitcoin mining also spawned purpose-built ASIC chips that cannot be repurposed for other hash functions. Decades of cryptanalysis have found no practical break, and SHA-256 remains considered secure against both classical and near-term quantum attacks.

SHA-256 Explainer Video

What is SHA-256? | Crypto Terms Explained

Related Articles