liveBook · Manning

SHA-2

SHA-2 is a standardized family of cryptographic hash algorithms that produces fixed-length digests, including SHA-224, SHA-256, SHA-384, and SHA-512.

How 2 Manning books explain it

Software Security for Developers

SHA-2 is a family of standardized cryptographic hash functions that includes SHA-224, SHA-256, SHA-384, and SHA-512.

How it is used
Detects accidental data corruption by comparing a recomputed SHA-256 digest with an expected value.
How deep it goes
Explains family variants, deterministic digests, Java access, validation steps, and why plain hashes stop short of active-tampering protection.
Examples
Uses refunds.json verification, detached .sha256 files, Java MessageDigest, Maven Central artifacts, and comparisons with MD5 and SHA-1.
What you can do after
Diagnose accidental file corruption with SHA-256 and select HMAC when integrity must include authenticity.

Read how Software Security for Developers explains SHA-2 →

Real-World Cryptography

SHA-2 is a standardized family of cryptographic hash algorithms producing digests of 224, 256, 384, or 512 bits.

How it is used
Positions SHA-2 as a practical family of standardized cryptographic hashes for choosing digest algorithms.
How deep it goes
Defines variants and sketches compression and Merkle–Damgård processing, stopping short of implementation-level detail.
Examples
Demonstrates SHA-224, SHA-256, SHA-384, and SHA-512 outputs for “hello world” using OpenSSL.
What you can do after
Operate SHA-2 variants through the OpenSSL command-line interface and distinguish their digest lengths.

Read how Real-World Cryptography explains SHA-2 →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.