The Digital Fingerprint
Chapter Field Guide
Measurable Learning Outcomes
- Demonstrate the avalanche effect in SHA-256 using Web Crypto.
- Explain how asymmetric digital signatures (ECDSA) prove both authenticity and integrity.
- Explain how TOTP combines a shared secret with 30-second time steps via HMAC.
Core Scientific Intuition
A cryptographic hash (like SHA-256) maps any input to a fixed 256-bit digest with three key properties: deterministic, one-way (preimage resistant), and collision resistant. Digital signatures (ECDSA) sign a hash with a private key so anyone with the public key can verify it was not altered. TOTP derives a 6-digit code every 30 seconds from HMAC(secret, floor(time / 30)).
Units & assumptions: Standard RFC 6238 uses 30-second steps and 6 decimal digits; clocks must stay reasonably synchronized.
Worked Example
Changing "Hello" to "hello" in SHA-256 flips roughly half of all 256 output bits (the avalanche effect), making it impossible to guess how close two inputs are by inspecting their hashes.
Hands-On Exploration
Interactive Laboratory
Test the concepts directly with 3 interactive panels, live controls, and visual feedback.
Open Interactive Lab →Three Guided Projects
Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.
View 3 Projects →Source Code (5 Snippets)
Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.
Browse Code →Self-Check Quiz (5 Questions)
Immediate explanations for every choice, unlimited retries, and local-only score tracking.
Take Self-Check Quiz →Book Chapter Outline (Reference Guide)
Section headings from Volume 1 for cross-referencing with the printed book.
Show all 28 book section headings
- Two certificates, one mystery
- PEOPLE BEHIND THE SCIENCE
- Ralph Merkle (born 1952)
- Leslie Lamport (born 1941)
- A fingerprint made of mathematics
- Three important properties
- One letter, a storm of changes
- Who protects the fingerprint?
- Different tools answer different questions
- How a website remembers a password
- A signature nobody can simply copy
- From public keys to digital trust
- What is a certificate?
- Why your six-digit code expires
- Project 1: make a digital fingerprint
- Project 2: issue a signed certificate
- Project 3: a code that changes with time
- Enter the verification laboratory
- Experiment A: avalanche effect
- Experiment B: tampered certificate
- Experiment C: time-based code
- The mystery of the missing prize
- Your mission
- What could go wrong?
- Invent a classroom certificate registry
- Invent a safer login poster
- Words to keep
- Sources and image credits
Primary Sources & Further Reading
External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.