The Trithemius Cipher is a polyalphabetic substitution cipher that shifts the alphabet progressively for each letter of the message. Instead of using a fixed shift like the Caesar Cipher, the shift increases step by step as the message is encoded.
The cipher was introduced by Johannes Trithemius in 1508. It works by applying a sequence of Caesar shifts to each letter of the plaintext. The first letter is shifted by 0, the second by 1, the third by 2, and so on. This changing shift produces a new substitution alphabet for every letter in the message.
Trithemius Cipher: Encoding
To encode a message, apply a Caesar shift that increases by 1 for each letter of the plaintext. The first letter is shifted by 0, the second by 1, the third by 2, etc.
Plaintext: HELLO
Step-by-step shifts:
H +0 → H
E +1 → F
L +2 → N
L +3 → O
O +4 → S
Ciphertext: HFNOSTrithemius Cipher: Decoding
To decode, reverse the process by subtracting the same sequence of shifts used during encoding.
Ciphertext: HFNOS
Step-by-step reverse shifts:
H -0 → H
F -1 → E
N -2 → L
O -3 → L
S -4 → O
Plaintext: HELLOTrithemius Cipher: Notes
- The shift increases sequentially with each letter, creating a changing substitution alphabet. - Because the shift pattern is predictable, the cipher is stronger than a simple Caesar Cipher but still vulnerable to modern cryptanalysis. - The Trithemius Cipher helped inspire later polyalphabetic systems such as the Vigenère Cipher. - Variations of the cipher may use repeating shift sequences or custom step patterns instead of a simple +1 progression.