
Technology & inventions
Cryptography: Summary and Study Notes
From secret codes to modern encryption
Study this topic in OriaThe essentials
Every time you send a message or pay online, invisible mathematics protects your data. This chapter tells the long history of cryptography: the ciphers of antiquity, the frequency analysis invented by al-Kindi, the Enigma machine defeated by the Poles and then by Bletchley Park, the public-key revolution of 1976. You'll also see how end-to-end encryption, hashing and digital signatures work, and why the quantum computer is forcing the world to change algorithms.
Key dates and facts
- c. 800
- Al-Kindi describes frequency analysis
- c. 1467
- Alberti sets out the polyalphabetic cipher
- 1553
- Bellaso describes the future “Vigenère cipher”
- 1587
- Execution of Mary, Queen of Scots, after the Babington Plot
- 1918
- Scherbius patents a rotor machine
- 1932
- Rejewski breaks the German Army's Enigma
- 1939
- The Poles hand their methods to the Allies
- 1944
- Colossus, a programmable electronic computer, goes into service
- 1973
- Clifford Cocks secretly invents a system close to RSA at GCHQ
- 1976
- Diffie and Hellman publish “New Directions in Cryptography”
🔐 The vocabulary of secrecy
Cryptography is the art, now a science, of protecting communication against an adversary. Its name comes from the Greek kruptos, “hidden,” and graphein, “to write.” For thousands of years, it was synonymous with encryption: turning a readable message, the plaintext, into an incomprehensible string, the ciphertext, which only the intended recipient will be able to turn back. Today it protects everything from the messages on a phone to card payments, passwords and software updates.
🗝️ Everything rests on the key
An encryption method, called a cipher, consists of two recipes: one to encrypt, the other to decrypt. Exactly how they work depends on a small secret, the key. Without a changeable key, a cipher is useless: as soon as someone knows the method, they can read everything. With a key, the method can be made public and only the key kept secret. This is one of the great principles of the field, which this chapter will come back to.
In everyday language, people say “secret code” for everything. Specialists, however, distinguish a code, which replaces whole words or phrases with others (an agreed word meaning “attack at dawn”), from a cipher, which transforms smaller units: letters, syllables, pairs of letters or, today, bits.
⚔️ Two opposing camps
Cryptology brings together two rival disciplines. Cryptography designs ciphers; cryptanalysis tries to break them, that is, to recover the meaning of a message without knowing the key. The whole history of secrecy is a race between these two camps. There is also steganography, which does not make the message unreadable but hides its very existence: invisible ink, microdots, a message concealed in an image.
Textbooks all over the world describe secret exchanges with three characters who have become classics: Alice sends a message, Bob receives it, and Eve, the spy (from eavesdropper), tries to intercept it.
🎯 Four missions
Modern cryptography no longer just hides things. It fulfills four main missions:
- Confidentiality: only the recipient can read the message.
- Integrity: you can check that the message was not altered along the way.
- Authentication: you can be sure of the sender's identity.
- Non-repudiation: the author of a signed message cannot deny having sent it.
For almost all of history, only the first one mattered.
🏺 The first secrets of antiquity
The earliest traces of deliberately transformed writing come from an Egyptian tomb, around 1900 BC: unusual hieroglyphs replace the expected signs, probably to intrigue or amuse educated readers rather than to hide a secret.
🧪 A potter's recipe
A little later, in Mesopotamia, the intention to protect a secret is clear. A clay tablet dated to around 1500 BC, found in what is now Iraq, contains a recipe for a pottery glaze, probably valuable commercially. Its author replaced some cuneiform signs with others and altered the spelling of words so that the recipe would stay unreadable to prying eyes.
🔄 Substitute or transpose
Ancient ciphers rest on two ideas that would remain the basis of all “pen-and-paper” ciphers:
- substitution: each letter is replaced by another, according to a rule;
- transposition: the letters are kept but their order is shuffled.
Atbash, used by Hebrew scholars perhaps as early as the 6th–5th centuries BC, is a simple substitution: the alphabet is reversed, the first letter becoming the last, the second the second-to-last, and so on.
In Sparta, the scytale illustrates transposition. A strip of leather was wound in a spiral around a rod of a precise diameter, then the message was written along the rod. Once unwound, the strip showed only a jumble of letters with no apparent order; only a recipient with an identical rod could read it again. Historians remain cautious: its use for encryption is asserted only by later authors, such as Plutarch and Aulus Gellius, and the scytale may mainly have served to authenticate messages.
The Greek historian Herodotus, for his part, reports steganographic tricks: messages hidden under the wax of writing tablets, or tattooed on the shaved scalp of a slave, then covered by the hair as it grew back.
🔥 Polybius and Caesar
The Greek historian Polybius gave his name to an ingenious device: a 25-square grid in which each letter is identified by two numbers, its row and its column. Originally designed to send fire signals over long distances, this Polybius square turns letters into numbers, an idea that foreshadows modern encoding.
The most famous of all remains the Caesar cipher. According to the Roman historian Suetonius, Julius Caesar shifted each letter three places along the alphabet for his military messages: A became D, B became E, and so on. His nephew Augustus used a shift of just one place. This cipher is very weak: with a 26-letter alphabet, there are only 25 possible shifts, which can all be tried in a few minutes. It survives today as ROT13, a 13-letter shift used on the internet to hide the punch line of a joke or the ending of a movie, with no claim to security whatsoever.
🌏 Far beyond the Mediterranean
Secrecy is not a European invention. In India, the Kama Sutra, composed sometime between the 4th century BC and the 3rd century AD depending on the estimate, lists among its 64 recommended arts that of understanding secret writing, advised for correspondence between lovers. In Sassanid Persia, according to the Arab author Ibn al-Nadim, a secret script was used for messages sent abroad.
The rest of the course
This page publishes the first 2 parts. The full course has 9: here is what the next ones cover.
- 📜 Al-Kindi and the Renaissance: breaking, then strengthening
How the scholar al-Kindi invented frequency analysis in 9th-century Baghdad, and how Renaissance Europe struck back with the polyalphabetic cipher of Alberti, Bellaso and Vigenère.
- 📡 From the telegraph to the Great War
The 19th century and World War I: Babbage and Kasiski break Vigenère, Kerckhoffs states his principle, Poe popularizes codes, and the Zimmermann Telegram brings the United States into the war.
- ⚙️ Enigma and the cipher war
World War II: how the Enigma machine worked, the feat of the Polish mathematicians in 1932, the work of Bletchley Park and Alan Turing, the Colossus computer, and the code war in the Pacific.
- 🧮 Shannon and DES: secrecy becomes a science
How Claude Shannon founded mathematical cryptography in 1949, how symmetric ciphers work, and how DES and then AES became public standards.
- 🗝️ The public-key revolution
The key distribution problem and its solution: Diffie and Hellman's key exchange (1976), the RSA cipher (1977), their earlier secret discovery at Britain's GCHQ, and the principle of asymmetric encryption.
- 📱 Everyday cryptography
What cryptography actually does today: HTTPS, end-to-end encryption, hash functions, passwords, digital signatures and cryptocurrencies.
- ⚖️ Crypto wars and the quantum threat
The political debates over encryption (export restrictions, the PGP case, the Clipper chip, law-enforcement access), modern flaws, and the transition to post-quantum cryptography.
Study “Cryptography” with flashcards and quizzes
In Oria, you read the full course, then practice on it: flashcards, multiple-choice quizzes, open questions or the Feynman method. Cards and questions then come back in your daily review, paced by spaced repetition.
Study this topic in OriaSources
These notes draw on the sources below. If a point seems doubtful, refer back to them.