Caesar cipher: the history
Suetonius, Julius Caesar, Augustus and letters written in Greek characters: what we really know about Roman ciphers.
The main source is Suetonius, who in the Lives of the Caesars (early 2nd century AD) writes that when Julius Caesar had something confidential to communicate he wrote so that no one could understand the words, replacing letters by the rule “the fourth letter of the alphabet, that is D, for A”, and so on for all the others.
During the Gallic War, Caesar relates in his Commentaries that he sent the besieged Quintus Cicero a letter written in Greek characters so that it could not be read if intercepted.
According to Suetonius, Caesar uses the three-letter shift for confidential correspondence.
Suetonius reports that Augustus used a shift of a single letter, writing B for A, and a double A for X.
Al-Kindi describes frequency analysis, the technique that makes every cipher of this kind vulnerable.
ROT13 spreads on Usenet forums: a 13-letter shift used to hide spoilers and jokes, not to protect secrets.
An alphabet different from ours
The Latin alphabet of Caesar’s time had 23 letters: J, U and W were missing, and I and V served as both vowels and consonants. The principle, however, was the same we use in examples with the modern 26-letter alphabet.
Why it worked
Today the Caesar cipher breaks in seconds, but in the Roman world it was reasonable protection: most people could not read, and whoever intercepted an incomprehensible message might think of a foreign language rather than a code. Its strength lay in the secrecy of the method, an idea modern cryptography has abandoned: today we assume the enemy knows the algorithm.
Caesar cipher: how it works
Two alphabets side by side, one shifted: the mechanism of encryption and decryption step by step.
The pages of this topic
Back to the overviewCaesar cipher: a worked example
Let us encrypt and decrypt VENI VIDI VICI with key 3, letter by letter.
Caesar cipher: the maths
Modular arithmetic, encryption and decryption formulas, key space: the Caesar cipher written as formulas.
Caesar cipher: how it is broken
Brute force, frequency analysis and known plaintext: three ways to break the Caesar cipher, each faster than the last.
Caesar cipher: today’s uses
ROT13, puzzles, teaching and obfuscation: where the Caesar cipher still turns up, and where it must never be used.
Caesar cipher: try it yourself
Three exercises to solve with pen and paper: encrypt, decrypt with the key, and break a message without the key.
Caesar cipher: frequently asked questions
Short answers to the most common doubts about the Caesar cipher and its variants.