STATION 25 / FIELD MANUAL

← Back to crypto library

Gronsfeld

Polyalphabetic

Gronsfeld is a repeating-shift cipher whose key consists of decimal digits. Each digit is a shift from zero to nine; a key digit 1 shifts A to B.

How to recognise it

A numeric keyword combined with alphabetic ciphertext is a useful clue. Like Vigenère, a repeating key may produce periodic structure, but a digit clue by itself does not prove the method.

Worked example: encrypt GARDEN with key 12

Repeat the digits across the message. Use A=0 and wrap after Z:

Plaintext   G  A  R  D  E  N
Values      6  0 17  3  4 13
Key digits  1  2  1  2  1  2
Sums        7  2 18  5  5 15
Ciphertext  H  C  S  F  F  P
  1. Shift G forward by 1 to H.
  2. Shift A forward by 2 to C.
  3. Continue with alternating shifts 1 and 2: the result is HCSFFP.

Work backwards: decrypt HCSFFP

Subtract 1,2,1,2,1,2 from the ciphertext values. The results are 6,0,17,3,4,13, spelling GARDEN. As a wraparound check, A shifted backwards by 2 becomes Y.

Conventions and common mistakes

Digits are literal shifts: 0 leaves a letter unchanged. Do not convert 1 to A and accidentally turn it into a zero shift. Preserve leading zeroes in a key. Keep key alignment consistent after removing punctuation or spaces.

  • Vigenère — The alphabetic-key counterpart.
  • Caesar — The single-shift operation used at each position.

Useful desk reference

Alphabet positions — Use the A=0 row for modular arithmetic.

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.