STATION 25 / FIELD MANUAL

← Back to field manual

Crypto.

A working library of ciphers, encodings and analysis techniques. Choose a reference to learn its conventions.

REF 01 / Fractionation

ADFGVX →

Use a 6×6 square labelled ADFGVX containing letters and digits, then columnar transposition.

REF 02 / Fractionation

ADFGX →

Encode with a 5×5 Polybius square labelled ADFGX, then apply keyed columnar transposition.

REF 03 / Polyalphabetic

Additive pad →

Add one key letter per plaintext letter modulo 26.

REF 04 / Substitution

Affine →

Compute c=(a·p+b) mod 26 with a coprime to 26.

REF 05 / Substitution

Atbash →

Reverse the alphabet: A becomes Z, B becomes Y.

REF 06 / Polyalphabetic

Autokey →

Start with a seed key, then extend it with plaintext. Add modulo 26.

REF 07 / Encoding

Bacon →

Encode each alphabet index as five binary choices, A=00000 through Z=11001.

REF 08 / Polyalphabetic

Beaufort →

Compute ciphertext as key minus plaintext modulo 26.

REF 09 / Fractionation

Bifid →

Convert a block to Polybius coordinates, concatenate all row digits then column digits, and regroup into pairs.

REF 10 / Coordinates

Book cipher →

Replace words with coordinates in an agreed text.

REF 11 / Substitution

Caesar →

Shift each letter by a fixed amount modulo 26.

REF 12 / Transposition

Columnar transposition →

Write rows under a keyword; read columns in alphabetical keyword order.

REF 13 / Digraph

Four-square →

Use four 5×5 squares: ordinary alphabets on one diagonal and keyed alphabets on the other. Locate plaintext pairs in ordinary squares and take opposite rectangle corners in keyed squares.

REF 14 / Polyalphabetic

Gronsfeld →

Repeat a numeric key and shift each letter by its digit.

REF 15 / Linear algebra

Hill →

Multiply plaintext vectors by an invertible matrix modulo 26.

REF 16 / Substitution

Homophonic substitution →

Assign several symbols to common letters and choose one for each occurrence.

REF 17 / Analysis technique

Key reuse →

Compare messages encrypted with the same additive key stream.

REF 18 / Substitution

Keyword substitution →

Remove repeated keyword letters, then append unused alphabet letters to form a substitution alphabet.

REF 19 / Analysis technique

Known plaintext →

Align a known plaintext fragment with its ciphertext to infer key material.

REF 20 / Composition

Layered ciphers →

Apply one transformation and then another, keeping both conventions.

REF 21 / Substitution

Monoalphabetic substitution →

Choose a permutation of the alphabet and replace letters consistently.

REF 22 / Coordinates

Nihilist →

Convert plaintext and a repeating keyword into Polybius numbers, then add corresponding numbers as ordinary integers.

REF 23 / Symbols

Pigpen →

Replace letters with their positions in a grid or crossed grid, retaining dots.

REF 24 / Digraph

Playfair →

Build a keyed 5×5 square with I/J merged. Split into pairs, separating duplicates. Shift same-row pairs right, same-column pairs down; otherwise exchange columns.

REF 25 / Coordinates

Polybius →

Place A–Z in a 5×5 square merging I/J; emit row then column.

REF 26 / Polyalphabetic

Porta →

Use thirteen reciprocal substitution alphabets selected by repeating paired key letters.

REF 27 / Transposition

Rail Fence →

Write letters along a zigzag of the chosen rail count, then concatenate rails.

REF 28 / Transposition

Route transposition →

Fill a rectangle in one order and read it along an agreed route.

REF 29 / Transposition

Scytale →

Write across a fixed-width rectangle and read down columns.

REF 30 / Fractionation

Trifid →

Use a 3×3×3 cube with 27 symbols. For each block, concatenate layer, row and column digits, then regroup into triples.

REF 31 / Transposition

Turning grille →

Write through holes in a square mask, rotating it through four positions.

REF 32 / Polyalphabetic

Vigenère →

With A=0, add repeating key letters modulo 26.

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.