SHA-256 is a cryptographic hash function developed by the NSA in 2001 that converts any input into a fixed 256-bit output, serving as the foundation of Bitcoin’s proof-of-work consensus mechanism.