STATION 25 / FIELD MANUAL

← Back to crypto library

Caesar

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
  1. Find each plaintext letter on the top row.
  2. Copy the letter beneath it on the lower row.
  3. ZOO becomes CRR. Both O letters become the same R.

Work backwards: decrypt CRR

  1. Find C on the lower alphabet and read Z above it.
  2. Each R on the lower alphabet has O above it.
  3. 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.

  • 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.

Support this project

Enjoying Advent of Cypher? If you'd like to support the project and help keep it running, you can make a small donation. Completely optional, always appreciated.