liveBook · Manning

SHA-256

As explained in Fundamentals of Cybersecurity

SHA-256 is a cryptographic hash algorithm that produces a 256-bit hash digest from input data.

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

How Fundamentals of Cybersecurity covers it

How deep it goes
Defines the fixed-length digest and shows comparison checks, while deferring fuller hashing detail to cryptography.
Examples
Uses a password login comparison and a downloaded-file checksum comparison as practical examples.
What you can do after
Apply a hashing tool to a downloaded file and compare its SHA-256 checksum with the website’s value to check for alteration or corruption.
How it connects
Connects SHA-256 with cryptographic hashing, password hashing, and file integrity checks.

Also explained in

Compare how 5 books explain SHA-256 →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.