SHA-256 is a cryptographic hash algorithm in the SHA-2 standard. It converts input data into a fixed-length 256-bit digest. The same input produces the same digest, while changes to the input produce a different one, helping reveal tampering. section 14.2.4
SHA-256 is used to compare digests in practical security checks:
- For a downloaded file, calculate its SHA-256 checksum and compare it with the value provided by the website to check for changes or corruption. section 14.2.4
- For stored passwords, a system can hash a login attempt and compare its digest with the stored one; attackers may also hash password guesses and compare them. section 12.3.3
ef92b778bafe771e89245b89ecbc08a44a4e166c06659911881f383d4473e94f
A sample digest shows the fixed-length form of a SHA-256 hash. section 12.3.3




