STATION 25 / FIELD MANUAL
← Back to crypto libraryCaesar
Substitution
A Caesar cipher replaces every letter with the letter a fixed number of places later in the alphabet. The shift is the key. Moving past Z wraps around to A.
How to recognise it
Word shapes and repeated letters survive. All letter frequencies are shifted together, so trying the 26 possible shifts is practical by hand. A frequency peak alone cannot establish the key, especially in a short message.
Worked example: encrypt ZOO with shift 3
Ignore spaces and use A–Z. The two aligned alphabets define every replacement:
Plain ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher DEFGHIJKLMNOPQRSTUVWXYZABC
Z → C (wrap past Z)
O → R
O → R
Result: CRR
- Find each plaintext letter on the top row.
- Copy the letter beneath it on the lower row.
- ZOO becomes CRR. Both O letters become the same R.
Work backwards: decrypt CRR
- Find C on the lower alphabet and read Z above it.
- Each R on the lower alphabet has O above it.
- The recovered message is ZOO. Equivalently, move every ciphertext letter three places backwards.
Conventions and common mistakes
A shift of 3 means add 3 to encrypt and subtract 3 to decrypt. Keep the sign straight. Wraparound is alphabet arithmetic modulo 26; it does not mean stopping at Z. Punctuation may be retained or omitted by agreement.
Related methods
- Affine — Extends shifting with a multiplication step.
- Vigenère — Uses a repeating sequence of shifts.
Useful desk reference
English letter frequencies — Compare symbol counts and repeated-letter patterns.