Chaocipher Explained: 5 Facts About the Cipher Nobody Could Buy

Chaocipher explained in plain terms means understanding the cipher that ran on two spinning disks of scrambled letters, a design from 1918 whose inventor was so sure of it that he offered a prize to anyone who could break it. The central question is why a cipher its own inventor could not sell still fascinates cryptographers, and the answer is that its alphabets changed after every single letter, so no pattern ever settled long enough to attack, and that restless motion is the whole point of the design.

Chaocipher is a cipher invented by the American businessman John F. Byrne in 1918 and built from two disks carrying scrambled alphabets that permute after each letter. It turns a message into ciphertext by passing each letter through the two disks in turn, and it is built on the idea that the key should change with every letter enciphered, which means the design never sits still, and that motion is what makes it unlike any other classical cipher.

This article gives you five facts about Chaocipher, explains what it is, how it works, and why it still matters.

Key takeaways

  • Chaocipher is a two-disk cipher from 1918.
  • It was invented by John F. Byrne of America.
  • Its alphabets permute after every letter.
  • It was kept secret for more than sixty years.
  • It is used in teaching and in cipher history today.

What Chaocipher is

The first fact is that Chaocipher is a polyalphabetic cipher with no fixed alphabet at all. It uses two disks, one for the plaintext alphabet and one for the ciphertext alphabet, which means every letter is enciphered through a pair of scrambled alphabets, and because both disks change after each letter, the mapping never repeats in a useful way.

The second fact is that its inventor tried to sell it to the government. John Byrne offered Chaocipher to the United States Navy and the Army Signal Corps, which means the design was pitched as a serious military cipher, and because the services declined, it never saw official use, a rejection Byrne never accepted.

The third fact is that it stayed secret for decades. Byrne kept the algorithm private and challenged the world to break it, which means the cipher was famous long before anyone outside his family knew how it worked, and because the secret finally came out in 1984, the design spent more than sixty years as a mystery.

The fourth fact is that it is vulnerable once the method is known. Modern analysis shows Chaocipher falls to known-plaintext attacks, which means the secrecy was doing most of the work, and because the design was never as strong as Byrne believed, it is a lesson in why hiding the method is not security.

The fifth fact is that it survived as a legend, not a tool. Chaocipher showed that a cipher could be built from moving parts rather than fixed tables, which means it is still the first example students meet when they learn about evolving alphabets, and that reputation is the reason it is taught beside the machines it never became.

Our guide to Enigma explains the rotor machine that did win military use, and our guide to GPG explains the modern tool for private messages.

How Chaocipher works

Everything starts with the two disks, each carrying a scrambled alphabet of 26 letters. Chaocipher places the plaintext disk on the left and the ciphertext disk on the right, which means every letter has a position on each disk, and because the alphabets start scrambled, the starting arrangement is the key.

Each letter begins with a lookup on the left disk. The sender finds the plaintext letter on the left disk and reads the letter at the same position on the right disk, which means the ciphertext letter is the right-disk letter aligned with the plaintext letter, and because the disks are scrambled, the mapping looks random.

The permutation is what makes the design work as a whole. After each letter, both disks are permuted according to a fixed rule, which means the alphabets shift and twist after every encipherment, and because the rule depends on the letters just used, the next mapping is different in a way the sender can still reproduce.

The motion spreads the effect further. Since the disks change after every letter, the same plaintext letter almost never enciphers to the same ciphertext letter twice in a row, which means frequency analysis finds nothing stable to count, and because the motion is the whole defence, stopping it would break the cipher at once.

The decryption is what keeps the design usable. The recipient runs the same disks with the same starting arrangement, finds the ciphertext letter on the right disk, and reads the plaintext letter at the same position on the left, which means decryption mirrors encryption exactly, and because the permutations follow the same rule, both sides stay in step.

The ciphertext comes from the disks, read out letter by letter in order. Chaocipher outputs one ciphertext letter per plaintext letter, which means the message keeps its length, and that fixed length is exactly what a classical cipher was expected to preserve.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how Chaocipher works: letters take turns through two shifting disks, step after step, until ciphertext emerges.

Comparing Chaocipher with other classical ciphers

Chaocipher is one of several classical ciphers built on changing alphabets, and each was built with a different emphasis. Vigenère is the table cipher with a repeating key, Enigma is the rotor machine whose wirings stepped with each letter, and Chaocipher is the one whose two alphabets permuted after every letter, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect Chaocipher Vigenère Enigma
Mechanism Two permuting disks Table and keyword Rotors and plugboard
Alphabet change After every letter With each key letter With each key press
Key Starting alphabets Repeating keyword Rotor settings
Year 1918 1586 1920s
Best for Teaching moving alphabets General classical use Teaching rotor machines

The practical result is that Chaocipher is the right choice for teaching moving alphabets, Vigenère suits general classical use, and Enigma fits teaching rotor machines instead.

Where Chaocipher is used

Teaching uses it as the moving-alphabet example. Cryptography courses introduce Chaocipher when they explain that an alphabet need not stay fixed, because it is the clearest case of a cipher that rewrites its own key as it works, and a student who understands Chaocipher understands why motion matters in cipher design.

History uses it to tell the story of 1918. The year Byrne invented his machine is one of the great dates in cryptography, and Chaocipher is remembered wherever that story is told, which means it survives as history as well as a working cipher.

Puzzle books use it to raise the difficulty. A puzzle that uses Chaocipher cannot be solved by counting letters, because the alphabet changes after every letter, and that restlessness is the reason puzzle setters reach for it when simpler ciphers feel too easy.

Software libraries use it as a test case. A library that implements classical ciphers usually includes Chaocipher beside the rotor machines, because the two share the idea of motion, and that pairing is the reason the cipher still appears in modern code.

Amateur cryptographers use it for fun. Hobbyists who enjoy hand ciphers pick Chaocipher when they want something genuinely different, because the permuting disks feel like a machine rather than a table, and that mechanical feel is the reason it still appears in cipher challenges.

Strengths and limits

The greatest strength of Chaocipher is its motion. Alphabets that change after every letter defeat frequency analysis completely, and that strength is real, measured in the decades the cipher resisted attack while its method stayed secret and confirmed by the analysts who needed the method before they could break it.

It is also a strength that the design is built from simple parts. Two disks and a permutation rule are easy to explain and easy to build, and that simplicity is worth more than cleverness in a field where a cipher nobody can build by hand is a cipher nobody remembers.

The limits are real, though, and the biggest is that secrecy was its shield. Once the method was published in 1984, known-plaintext attacks broke it, which means it was never as strong as Byrne claimed, and a system that needs real security must use a modern cipher instead.

Chaocipher checklist

  • Use Chaocipher for teaching and puzzles, never for real secrets.
  • Remember both disks permute after every letter.
  • Keep the starting alphabets secret, as they are the key.
  • Compare it with Enigma to see two kinds of motion.
  • Note the method was secret until 1984.
  • Guard against known plaintext, which breaks it fast.
  • Try enciphering by hand to feel the disks move.
  • Never rely on a secret method for anything important.
  • Choose a modern cipher for any message that matters today.

Frequently asked questions

What is Chaocipher in simple terms?

It is a 1918 cipher built from two disks of scrambled letters that permute after every letter, so the alphabet never stays still.

Who invented Chaocipher?

John F. Byrne, an American businessman who invented it in 1918 and spent years trying to sell it to the United States military.

How is Chaocipher different from Enigma?

Both change with every letter, but Enigma used wired rotors that stepped mechanically while Chaocipher permuted two alphabets by a rule after each letter.

Is Chaocipher still secure?

No, once its method was published in 1984, known-plaintext attacks broke it, so it is only safe for teaching, puzzles and history.

Where is Chaocipher used?

In cryptography courses, in cipher history, in puzzle books, and in cipher software libraries.

When should I use Chaocipher?

When you teach evolving alphabets, when you set a hard puzzle, or when you want the most restless classical cipher ever built.

The bottom line

Chaocipher explained in one line is this: the cipher that never sat still, a 1918 design of two permuting disks that kept its secret for sixty years and taught cryptography that motion is not enough.

It is proof that a clever mechanism still needs sound mathematics, and the reason it still matters is that every cipher designed since has been judged partly by the lesson Chaocipher taught.

This article is general information about how Chaocipher works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top