Caesar cipher · 08 FAQ

Caesar cipher: frequently asked questions

Short answers to the most common doubts about the Caesar cipher and its variants.

Did Caesar always use a shift of three?

According to Suetonius, yes, at least in the correspondence he refers to. Nothing prevents other shifts, and Suetonius himself attributes a single-letter shift to Augustus.

Is the Caesar cipher secure if I keep the key secret?

No. There are only 25 possible keys: anyone can try them all in a few minutes, even without a computer.

What is the difference between the Caesar cipher and ROT13?

ROT13 is a Caesar cipher with the fixed key 13. Applied twice, it returns the original text.

Can I make it more secure by encrypting twice?

No: two successive shifts are equivalent to a single shift by the sum of the two keys.

What came after the Caesar cipher?

Polyalphabetic ciphers, such as the Bellaso–Vigenère cipher, which alternate several different shifts according to a keyword.

Is it still used in computers?

Only as a teaching exercise or as trivial disguise. Data is protected with standard algorithms and long keys.

↑