A Whirlwind Tour of Cryptography
Katherine E. Stange
Math 4440/5440 First Day (August 21, 2026)
| א | ב | ג | ד | ה | ו | ז | ח | ט | י | כך | ל | מם | נן | ס | ע | פף | צץ | ק | ר | ש | ת |
| ת | ש | ר | ק | צץ | פף | ע | ס | נן | מם | ל | כך | י | ט | ח | ז | ו | ה | ד | ג | ב | א |
hover over a letter to see its partner
Atbash Cipher
Jeremiah 25:26 — “The king of Sheshach shall drink after them”
ששך ššk → בבל bbl
Caesar Wheel
Vigenère Cipher
| KEY | 1 | 3 | 2 | 4 | 1 | 3 | 2 | 4 | 1 | 3 | 2 | 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PLAINTEXT | A | T | T | A | C | K | A | T | D | A | W | N |
| CIPHERTEXT | B | W | V | E | D | N | C | X | E | D | Y | R |
“impossible of translation” — Scientific American, 1917
Example of a substitution cipher (replacing characters)
| A | D | F | G | V | X | |
|---|---|---|---|---|---|---|
| A | c | o | 8 | x | f | 4 |
| D | m | k | 3 | a | z | 9 |
| F | n | w | 1 | 0 | j | d |
| G | 5 | s | i | y | h | u |
| V | p | l | v | b | 6 | r |
| X | e | q | 7 | t | 2 | g |
| 3 | 4 | 2 | 1 |
|---|---|---|---|
| D | G | X | G |
| X | G | D | G |
| A | A | D | D |
| D | G | X | G |
| F | X | D | G |
| F | D | F | A |
Plaintext: attack at dawn
Intermediate Step: DG XG XG DG AA DD DG XG FX DG FD FA
Ciphertext: GGDGGAXDDXDFDXADFFGGAGXD
Includes an example of a transposition cipher (reordering characters)

Wartime Enigma Machine
at left: public domain; at right: Bundesarchiv, Bild 101I-769-0229-10A / Borchert, Erich (Eric) / CC-BY-SA 3.0, CC BY-SA 3.0 DE https://creativecommons.org/licenses/by-sa/3.0/de/deed.en, via Wikimedia Commons
TedColes, public domain, via Wikimedia Commons
Luftwaffe Enigma key sheet no. 649, public domain, via Wikimedia Commons
All the systems discussed so far are symmetric key cryptosystems. Such a system consists of:
Problems: key distribution
The keyspace is the set of all possible secret keys.
A cryptanalyst tries to break a cryptosystem.
The first, most naïve method is exhaustive search: trying all possible keys.
| key | plaintext |
|---|---|
| 0 | WFYDAKZLWPL |
| 1 | XGZEBLAMXQM |
| 2 | YHAFCMBNYRN |
| 3 | ZIBGDNCOZSO |
| 4 | AJCHEODPATP |
| 5 | BKDIFPEQBUQ |
| 6 | CLEJGQFRCVR |
| 7 | DMFKHRGSDWS |
| 8 | ENGLISHTEXT |
| 9 | FOHMJTIUFYU |
| 10 | GPINKUJVGZV |
| 11 | HQJOLVKWHAW |
| 12 | IRKPMWLXIBX |
| key | plaintext |
|---|---|
| 13 | JSLQNXMYJCY |
| 14 | KTMROYNZKDZ |
| 15 | LUNSPZOALEA |
| 16 | MVOTQAPBMFB |
| 17 | NWPURBQCNGC |
| 18 | OXQVSCRDOHD |
| 19 | PYRWTDSEPIE |
| 20 | QZSXUETFQJF |
| 21 | RATYVFUGRKG |
| 22 | SBUZWGVHSLH |
| 23 | TCVAXHWITMI |
| 24 | UDWBYIXJUNJ |
| 25 | VEXCZJYKVOK |

The number of possible keys: \(26!\) \(> 400,\!000,\!000,\!000,\!000,\!000,\!000,\!000,\!000,\!000 = 4 \times 10^{26}\).

rotors ring reflector plugboard positions
\(\textcolor{red}{5\cdot4\cdot3}\) \(\cdot\ \textcolor{teal}{26^3}\) \(\cdot\ \textcolor{green}{24!/(12!\,2^{12})}\) \(\cdot\ \textcolor{violet}{26!/(10!\,6!\,2^{10})}\) \(\cdot\ \textcolor{orange}{26^3}\) \(=\) 883 decillion 534 nonillion 753 octillion 894 septillion 422 sextillion 885 quintillion 12 quadrillion 165 trillion 143 billion 736 million \(\simeq 10^{36}\) keys
Key sheet: public domain, via Wikimedia Commons
A random permutation of the alphabet:
Cycle structure: 6-2-2-3-4-7-2
A Caesar permutation of the alphabet (shift 3):
Cycle structure: 26
An enigma permutation of the alphabet:
Cycle structure: 2-2-2-2-2-2-2-2-2-2-2-2-2
Message key: BLA
Encrypted message key (using daily key):
Learned information about \(\sigma_4 \circ \sigma_1\):
\[ A \rightarrow W \]

Bletchley Park Bombe replica
Antoine Taveneaux, CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0, via Wikimedia Commons

Jeongysu, CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0, via Wikimedia Commons
Sharing secret information across a public channel.
Without any setup (no shared secret beforehand).
How is this even possible?!
Setup: \(p\) (modulus), \(g\)
Alice Bob
Secret: \(a\) Secret: \(b\)
\(g^a\) \(\longrightarrow\) \(g^a\)
\(g^b\) \(\longleftarrow\) \(g^b\)
Compute: \((g^b)^a \equiv g^{ab}\) Compute: \((g^a)^b \equiv g^{ab}\)
An eavesdropper Eve can see \(g^a\) and \(g^b\) and must compute \(g^{ab}\).
A hard cryptographic problem is:
The idea for public-key encryption is that
For example, to decrypt a message meant for someone else, it may require factoring a number so big, that it is expected to take longer than the length of time before the sun dies.
We don’t actually know they are hard!
The Computational Diffie-Hellman Problem:
Given \(g^a, g^b \pmod p\), compute \(g^{ab}\).
The Factoring Problem:
Given an integer \(n=pq\) for \(p\) and \(q\) prime, find \(p\) and \(q\).

Estimate each quantity as a power of two (and put them in order!)
Do your computations with a crazy group called an

elliptic curve.
We will study quantum cryptography, quantum algorithms and post-quantum cryptography.
Bonus: Whirlwind tour of coding theory
Image: the editors of encyclopedia britannica, CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0, via Wikimedia Commons