ARS · OCCULTANDI · VERBA

Ciphers & Cryptography

Three thousand years of hidden messages, the art of breaking them, and the science that grew up around both.
Rolling Thunder Security · Cybersecurity Education for Everyone · Symmetric Encryption

Cryptography is the discipline of writing messages so that only the intended reader can understand them. Its sister art, cryptanalysis, is the discipline of reading those messages without permission. Together they form the longest-running adversarial competition in human history. Every cipher in this course is a snapshot of where that competition stood at one moment in time. Every one of them was eventually broken, and every break drove the next invention.

The ciphers below are arranged in roughly chronological order. The Caesar cipher, brutally simple, served Roman generals well enough until everyone figured out the trick. The general substitution cipher fixed Caesar's tiny key space but left letter frequencies untouched, and that flaw doomed it to a ninth-century Arab scholar with a tally sheet. The Vigenère cipher, called le chiffre indéchiffrable for three centuries, finally fell to Charles Babbage and a Prussian infantry officer working independently. The Enigma machine, discussed later in the course, was the industrialization of this same idea, and breaking it changed the course of a world war.

What you should take from this collection is not nostalgia. It is a working understanding of how cryptographic systems fail. Modern algorithms are far stronger than these classical ones, but they fail for the same reasons: predictable keys, reused state, leaked structure, mathematics that turned out to be easier than its inventors hoped. The puzzles below are training, not tourism.

Vocabulary

Core · Concepts

A small set of words you will hear in every cryptography lecture, every textbook, and every threat model for the rest of the semester.
Plaintext
Lat. textus apertus
The original, readable message before any transformation. The thing you actually want to communicate.
Ciphertext
Lat. textus occultus
The transformed, scrambled message that travels over an untrusted channel. Useless to anyone without the key.
Key
Gr. kleís · κλείς
The secret value that controls the transformation. Same algorithm + different key = totally different ciphertext.
Encryption
Gr. kryptós · κρυπτός
The process of converting plaintext into ciphertext using a key. Sender's job.
Decryption
Gr. analuein · ἀναλύειν
The reverse process: ciphertext plus the right key gives back the original plaintext. Receiver's job.
Cryptanalysis
The breaker's craft
Recovering plaintext (or the key) without being given the key. The whole point of the adversary.
Symmetric
One shared secret
Same key encrypts and decrypts. Caesar, Vigenère, Enigma, AES. Fast, but key distribution is the hard problem.
Asymmetric
Two related keys
Public key encrypts, private key decrypts. RSA, elliptic curve. Solves key distribution; covered later in the course.
Historia

A Brief · History

Highlights only. Cryptography has been invented and reinvented in nearly every civilization that produced written records.
CIRCA 500 BC
The Spartan Scytale
A wooden rod and a leather strap. Wrap, write, unwrap. The recipient needs an identical rod to read it. Transposition cipher in its purest form.
CIRCA 50 BC
Caesar's Shift
Julius Caesar shifts each letter three positions through the alphabet. Suetonius records the practice. Twenty-five possible keys. Featured in the first cipher challenge below.
9TH CENTURY
Al-Kindi & Frequency Analysis
The Arab philosopher Abu Yusuf al-Kindi writes Risala fi Istikhraj al-Mu'amma, the first known treatise on cryptanalysis. Counts letter frequencies. Substitution ciphers are now routinely breakable.
1467
Alberti's Polyalphabetic Idea
Leon Battista Alberti builds a cipher disk that can shift mid-message. The first polyalphabetic cipher. The defense against frequency analysis is born.
1586
Vigenère Tableau Published
Blaise de Vigenère publishes a polyalphabetic cipher driven by a repeating keyword. For three hundred years it is called le chiffre indéchiffrable. Featured in the third cipher challenge below.
1854 / 1863
Babbage & Kasiski Break Vigenère
Charles Babbage cracks Vigenère privately around 1854. Friedrich Kasiski publishes the technique in 1863. Repeating keywords leave statistical fingerprints; the indecipherable cipher dies.
1917
Vernam & the One-Time Pad
Gilbert Vernam invents a stream cipher with a key as long as the message. Shannon proves in 1949 that, used correctly, it is information-theoretically unbreakable. Key distribution remains a nightmare.
1939 to 1945
Enigma & Bletchley Park
The German Enigma machine industrializes polyalphabetic substitution with rotors. Polish mathematicians (Rejewski, Różycki, Zygalski) make the first breaks; Alan Turing's team at Bletchley Park scales the attack with the Bombe. Shortens the war by an estimated two years.
1976
Diffie & Hellman: Public Keys
Whitfield Diffie and Martin Hellman publish New Directions in Cryptography. For the first time, two strangers can agree on a shared secret over a public channel. The age of asymmetric cryptography begins.
1977
RSA
Rivest, Shamir, and Adleman publish a working public-key cryptosystem based on the difficulty of factoring large integers. Still in use today, though under pressure from quantum computing.
2001
AES Standardized
The Advanced Encryption Standard, originally Rijndael by Daemen and Rijmen, is adopted by NIST. Replaces DES. Powers nearly everything you encrypt today: TLS, disk encryption, VPN tunnels, your phone.
PRESENT & FUTURE
Post-Quantum Cryptography
Sufficiently powerful quantum computers will break RSA and elliptic curve cryptography. NIST has begun standardizing replacements (Kyber, Dilithium). The next round of the same old race.
Interactive · Practica

Try the · Ciphers

Three challenges, three eras of cryptographic history. Each one runs entirely in your browser. Score, streak, hint system, and difficulty tiers (including ZZZ Lore for the company canon).
Coming Later in the Course

The · Enigma · Machine

Polyalphabetic, mechanized.

CHIFFRIERMASCHINE · 1923 to 1945

The Enigma machine takes the Vigenère idea and grinds it through hardware. Three (later four) rotating wheels, each implementing a substitution alphabet, advance with every keypress. A plugboard adds another layer of swapping before and after the rotors. The effective key space climbs into the quintillions.

Used by the German military throughout the Second World War, Enigma seemed unbreakable from the outside. From the inside, it leaked. Polish cryptanalysts (Marian Rejewski, Jerzy Różycki, Henryk Zygalski) made the first mathematical breaks in the 1930s. The British team at Bletchley Park, led informally by Alan Turing, industrialized the attack with electromechanical machines called Bombes. Historians estimate the resulting intelligence shortened the war in Europe by two years.

Enigma is the bridge between the classical ciphers above and the modern algorithms that follow. We will return to it in a later lecture and break it together.

▸ Module IV · Enter the Machine
A Closing Thought

Kerckhoffs's · Principle

"
A cryptosystem should be secure even if everything about it, except the key, is public knowledge.
Auguste Kerckhoffs · 1883

Every cipher in the games above violates this principle to some degree. The Caesar cipher's algorithm is its key, and once you know it shifts letters you have already won. The substitution cipher does better, but its structural transparency to frequency analysis means the algorithm itself leaks information. Vigenère hides more, but the repetition of the keyword leaves a periodic signature in the ciphertext. Modern algorithms like AES are designed under Kerckhoffs's discipline: the algorithm is published, peer-reviewed, attacked for decades, and only the key is secret. That is the standard we will hold the rest of the course's cryptography to.