SHA-2
In this chapter, I examine the SHA-2 family from NIST's Secure Hash Standard. It starts with an overview of the family, followed by SHA-224, SHA-256, SHA-384, SHA-512, and the two variants SHA-512/224 and SHA-512/256. There are nine articles in all, building on one another and covering all six SHA-2 algorithms by the end — SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256:
-
What Is SHA-2? The overview of the SHA-2 family: which six algorithms belong to it, how they can be divided into a 32-bit and a 64-bit structure, and where best to start.
-
What Is SHA-224? Shows why, despite its close relationship to SHA-256, SHA-224 is not a mere truncation of the SHA-256 hash but uses its own initial hash values — with an interactive comparison for your own input.
-
What Is SHA-256? Explains how SHA-256 is built, how the algorithm processes messages in 512-bit blocks and 64 rounds, and which security strength NIST lists for SHA-256.
-
How Does SHA-256 Work? Opens the black box: padding, the message schedule, the functions
Ch,Maj,Σ₀, andΣ₁, the 64 compression rounds, and how the 256-bit digest results from them. -
SHA-256 Step by Step The practical follow-up: in the interactive SHA-256 Explorer, you follow your own name or text through bytes, padding, the message schedule, 64 compression rounds, and the final hash.
-
What Is SHA-384? Shows why, despite its close relationship to SHA-512, SHA-384 is not a mere truncation of the SHA-512 hash but uses its own initial hash values — with an interactive comparison for your own input.
-
What Is SHA-512? Explains how SHA-512 is built with 1024-bit blocks, 64-bit words, and 80 compression rounds, where the initial hash values and round constants come from, and which security strength NIST lists for SHA-512.
-
SHA-256 vs. SHA-512 – What Is the Difference? Compares the two algorithms in block size, word size, message schedule, rounds, padding, and security strength — with the interactive SHA-256/SHA-512 comparison for your own input.
-
What Are SHA-512/224 and SHA-512/256? Shows why, despite having the same output length as SHA-224 and SHA-256, SHA-512/224 and SHA-512/256 are independent algorithms based on the 64-bit structure of SHA-512 — with the SHA-512/t IV generation function and an interactive comparison for your own input.