The Art of Secret Messages
Chapter Field Guide
Measurable Learning Outcomes
- Demonstrate why simple substitution ciphers fall quickly to frequency analysis.
- Trace modular exponentiation in a small Diffie-Hellman key exchange.
- Explain why real systems use authenticated encryption (AES-GCM) with unique nonces instead of toy ciphers.
Core Scientific Intuition
Classical ciphers like Caesar shifts preserve letter frequencies, letting an analyst crack them in seconds. Modern cryptography separates public algorithms from secret keys: Diffie-Hellman uses modular exponentiation so two parties compute the same shared secret g^(ab) mod p without sending a or b. Real encrypted traffic then uses authenticated ciphers like AES-GCM, which provide both confidentiality and tamper detection.
Units & assumptions: Educational small primes illustrate the algebra; production systems use 2048+ bit groups or elliptic curves (X25519/P-256).
Worked Example
With p = 23, g = 5, Alice picks a = 6 (sends 5^6 mod 23 = 8) and Bob picks b = 15 (sends 5^15 mod 23 = 19). Both compute 19^6 mod 23 = 8^15 mod 23 = 2.
Hands-On Exploration
Interactive Laboratory
Test the concepts directly with 4 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 (3 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 39 book section headings
- A message through a glass tube
- PEOPLE BEHIND THE SCIENCE
- Julius Caesar (100-44 BCE)
- Ron Rivest (born 1947)
- PEOPLE BEHIND THE SCIENCE
- Adi Shamir (born 1952)
- Leonard Adleman (born 1945)
- A wheel that turns letters
- The mathematics
- How to break the classroom cipher
- Frequency analysis
- Meet the pioneer: Alan Turing
- The machine that changed its alphabet
- One secret key, two friends
- A new challenge
- A lock anyone can close
- Public keys and trust
- Meet the pioneers of public-key agreement
- Whitfield Diffie (born 1944)
- Martin Hellman (born 1945)
- A shared secret from public numbers
- Can a messaging company read your message?
- What encryption cannot hide by itself
- Project 1: build a secret alphabet
- Read the code
- Project 2: the pattern detective
- Read the code
- Project 3: a secret that was never sent
- Your secret-message laboratory
- Experiment A: change the alphabet
- Experiment B: count the clues
- Experiment C: share a result
- The case of the replaced invitation
- Your mission
- When the lock is not enough
- Invent your own classroom cipher game
- Design a responsible messaging interface
- Words to keep and sources to explore
- 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.