Cabinet Noir>History / Caesar cipher

Not sure which cipher? Identify it
Every letter of the message is shifted by the same fixed number of positions in the alphabet.
Typesubstitution cipher
Breaking ittrivial to break
Era1st century BC
NameNamed after Julius Caesar, who reportedly used a shift of 3 in private correspondence.
Modesencrypt · decrypt

History

Caesar cipher

History of the Caesar cipher

A private letter habit

The shift cipher is named after Julius Caesar, who — his biographer Suetonius reports — used a shift of 3 in private correspondence: A became D, B became E. His successor Augustus preferred a mild shift of 1, writing simply the next letter of the alphabet. For the Roman world this was adequate protection: many of the recipients' enemies could not read Latin at all, and literate Romans did not treat letter substitution as serious cryptography anyway.

Written down as an anecdote

Suetonius describes both schemes plainly in The Lives of the Twelve Caesars, which is how we still know the details today. The cipher was never a state secret — it circulated as a curiosity, a neat trick of the great commander, and medieval manuscripts copied rotation tables for "Caesar's alphabet" long after the empire was gone.

Al-Kindi ends the single alphabet

Around the 9th century, in Baghdad, Al-Kindi wrote a treatise on decrypting messages: count the letters, compare the counts with the known letter frequencies of the language, and the substitution reveals itself. That single idea broke every monoalphabetic cipher at once — Caesar's included — and pushed cryptographers towards ciphers that hide letter frequencies.

The lesson that stayed

The Caesar cipher survives as the textbook first cipher. Twenty-five keys are useless for real secrets, but the scheme is perfect for learning what a key is, what brute force costs, and why frequency analysis changed the field. The Renaissance answer — several alphabets in turn — is the Vigenère cipher, and this site covers it in the same way.

58 BCJulius Caesar uses a shift of 3 for private correspondence, his biographer Suetonius reports. Source
c. 121Suetonius describes both Caesar's shift of 3 and Augustus' shift of 1 in The Lives of the Twelve Caesars. Source
c. 800Al-Kindi writes on decrypting messages by letter frequency, breaking every single-alphabet substitution cipher. Source
1553Bellaso's repeating-key cipher — "many Caesars", one per key letter — makes fixed shifts obsolete. Source