Caesar cipher: today’s uses
ROT13, puzzles, teaching and obfuscation: where the Caesar cipher still turns up, and where it must never be used.
No serious system uses the Caesar cipher to protect data. Yet it still turns up often, in roles different from its original one.
- ROT13
- A 13-letter shift born on forums to hide spoilers, puzzle solutions and jokes: anyone who wants to read it decodes it with one click.
- Teaching
- It is the first exercise in almost every cryptography and programming course: it teaches modular arithmetic and the difference between key and algorithm.
- Games and puzzles
- Treasure hunts, escape rooms and security competitions (CTFs) use it as the first difficulty level.
- Obfuscation
- Malicious programs and spam texts sometimes shift letters to slip past the most naive filters: this is not encryption, it is disguise.
A news story
In 2006, after the arrest of the Sicilian Mafia boss Bernardo Provenzano, the press reported that in his notes, the so-called “pizzini”, some names were hidden with a numerical variant of the Caesar cipher in which the shifted letters were written as numbers. Investigators decoded it without difficulty: a concrete example of why, against anyone able to analyse a text, secrecy of the method is not enough.
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.
The pages of this topic
Back to the overviewCaesar cipher: the history
Suetonius, Julius Caesar, Augustus and letters written in Greek characters: what we really know about Roman ciphers.
Caesar cipher: how it works
Two alphabets side by side, one shifted: the mechanism of encryption and decryption step by step.
Caesar 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: frequently asked questions
Short answers to the most common doubts about the Caesar cipher and its variants.