STATION 25 / FIELD MANUAL

← Back to crypto library

Monoalphabetic substitution

Substitution

A monoalphabetic substitution uses one fixed replacement for each letter. Its key is a permutation of the alphabet: every ciphertext letter appears once in the replacement row.

How to recognise it

Repeated plaintext letters stay repeated, and letter-pattern structure survives. Frequency counts, common short words and repeated word shapes can help infer an unknown alphabet. No single frequent symbol must necessarily mean E.

Worked example: encrypt CAB

Use this explicitly supplied permutation. It swaps A/B and C/D while leaving other letters unchanged:

Plain  ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher BADCEFGHIJKLMNOPQRSTUVWXYZ

C → D
A → B
B → A
Result: DBA
  1. Locate each input letter on the ordinary alphabet row.
  2. Copy its replacement from the row below.
  3. CAB becomes DBA. With the same key, CABB would become DBAA, preserving the double-letter pattern.

Work backwards: decrypt DBA

Find each ciphertext letter in the bottom row and read the letter above it: D → C, B → A, A → B. This gives CAB.

When the key is missing

Record tentative mappings in a two-row alphabet. Compare repeated patterns across words, use frequency counts as suggestions, and check that no two plaintext letters map to the same ciphertext letter. Test a hypothesis across the whole message before treating it as established.

Conventions and common mistakes

Our example key happens to undo itself; an arbitrary permutation usually does not. Always use the inverse mapping to decrypt. Frequency rankings fluctuate in short or specialised texts.

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.