The VIC cipher is the most celebrated pencil-and-paper cipher of the Cold War. Named after the Soviet agent codenamed VICTOR, it came to light in 1953 when a New York newsboy split open a hollow nickel and found a coded message inside. For years the FBI and NSA could not break it; only after agent Reino Häyhänen defected was the system explained. This simulator runs its three core cryptographic stages.
How it works
The cipher chains together three classic techniques, and decryption undoes them in reverse order.
-
Chain addition (key generation). Starting from a short numeric seed, each new digit is the sum modulo 10 of two earlier digits — a lagged-Fibonacci sequence. This expands the seed into a long key stream used to order the later steps.
-
Straddling checkerboard (substitution). A keyed board gives the eight most common letters single-digit codes and the rest two-digit codes, fractionating the message into a compact digit stream.
-
Two columnar transpositions (diffusion). The digit stream is written into a grid and read out column by column in a key-determined order — first a plain transposition, then a second one — thoroughly mixing the digits.
The output is written in five-digit groups. Decryption reverses the two transpositions and then reads the checkerboard backwards.
Example
With keyword MOSCOW and seed 74125, the message MEET AT THE BRIDGE AT MIDNIGHT enciphers to grouped digits such as:
27223 89208 30203 24626 24286 68676 6304
Feeding those groups back in with the same keyword and seed recovers MEETATTHEBRIDGEATMIDNIGHT.
Notes
- The keyword and numeric seed together form the agent’s key; both sides must hold exactly the same pair to communicate.
- Only letters survive the checkerboard, so spacing and punctuation are dropped — agents transmitted the digits in five-figure groups, as shown.
- The strength of the real VIC came from combining substitution, fractionation and double transposition with a non-repeating key — far beyond the simpler Nihilist cipher it descends from.