Articles here
A History of Collision Attacks: How MD5 and SHA-1 Left the Stage
From Wang Xiaoyun's team breaking MD5 in 2004, to SHAttered's first practical SHA-1 collision in 2017, to chosen-prefix collisions costing tens of thousands of dollars by 2020 — this history shows how collision attacks turn from theoretical blemishes into engineering incidents, and why standards bodies retire algorithms a decade early.
MD5SHA-1Collision Attacks
Hashing in Commitments and Integrity: Seal It Now, Reveal It Later; Fingerprint First, Compare Later
Publish a value's hash now and show the original later, and you have the simplest cryptographic commitment: it stays hidden (hiding) and cannot be disowned (binding). The same mechanism in another costume is the integrity fingerprint behind software distribution and evidence logs. This article explains the principles and limits of both roles.
Commitment SchemesIntegrity CheckingHash Fingerprints
Why Hash Functions Survive: Security Margins in the Quantum Era
Preimage and collision resistance are different security goals, and Grover's algorithm buys only a square-root speedup — an accounting of SHA-256's actual quantum-era margin and the trivial countermeasure.
hash functionsGrover's algorithmSHA-256
Why HMAC Is Built the Way It Is: The Reasoning Behind Two Layers and Two Constants
HMAC looks like merely hashing key and message together twice, but every detail — the ipad and opad constants, the inner-then-outer nesting, pre-hashing over-long keys — answers a specific failure mode. This article takes apart the 1996 design that remains the default answer for MACs.
HMACMessage AuthenticationKeyed Hashing
The Merkle–Damgård Construction and Length Extension: A Structural Flaw in the Pipeline
MD5, SHA-1 and SHA-256 share one iterative skeleton: chop the message into blocks and compress them one by one. The design is simple and elegant, but it carries a structural weakness — given H(m), anyone can compute H(m‖padding‖suffix) without knowing m.
Merkle-DamgårdLength ExtensionSHA-256
Anatomy of the SHA-2 Family: Two Machines Behind Four Names
SHA-224, SHA-256, SHA-384 and SHA-512 look like four algorithms but are really two machines: a 32-bit-word SHA-256 and a 64-bit-word SHA-512, with the other members derived by changing initial values and truncating output. Understanding this family tree resolves half of all deployment selection questions.
SHA-2SHA-256SHA-512
Slow Hashing and Password Storage: Why a Stored Password Hash Must Be Deliberately Slow
Ordinary hashes are designed to be fast; password storage needs exactly the opposite — slow, memory-hungry, and salted per user. This article explains how the offline-cracking threat model shaped bcrypt, scrypt and Argon2. Principles only; the hands-on implementation lives in the tutorials section.
Password StorageArgon2Slow Hashing
The Sponge Construction and SHA-3: Why the New Generation Changed Course
SHA-3 does not reuse SHA-2's iterative compression skeleton. Keccak's sponge absorbs input and squeezes out output while most of its internal state never sees daylight — both a diversity hedge and a direct answer to structural lessons like length extension.
SHA-3KeccakSponge Construction