SHA-256 Hashing

Computer Science

How It Works

SHA-256 is an industry-standard cryptographic hash algorithm adhering to the Merkle-Damgård iterative compression framework, mapping arbitrary-length message blocks to an irreversible 256-bit hash digest. Input bitstreams are padded and partitioned into 512-bit blocks, sequentially mutating eight 32-bit internal working registers across 64 compression rounds. Bitwise nonlinear operations (Choose, Majority, and Rotational Sigma functions) impart strong pre-image collision resistance.

Governing Equation
$$ T_1 = h + \Sigma_1(e) + \text{Ch}(e, f, g) + K_t + W_t \quad\vert\quad T_2 = \Sigma_0(a) + \text{Maj}(a, b, c) $$