The Chaocipher is a sophisticated and historically intriguing cipher invented by John F. Byrne in 1918. Unlike traditional substitution ciphers, the Chaocipher uses two rotating disks—one for the plaintext alphabet and one for the ciphertext alphabet—both of which are permuted after each letter is encrypted. This dynamic reordering ensures that the same plaintext letter never encrypts to the same ciphertext letter twice in a row, creating a highly irregular polyalphabetic system.

Conceptually, it is related to other polyalphabetic and dynamic substitution ciphers such as the Vigenère Cipher and the ROT Cipher, but its continuous reshuffling of the alphabets after each character produces far greater complexity and resistance to frequency analysis.

Chaocipher: Encoding

To encode a letter, locate it on the plaintext disk and read the corresponding letter on the ciphertext disk. After encoding, both disks are permuted according to the Chaocipher’s rotation rules. For example, using the specified initial arrangement:

Plaintext Alphabet Disk:  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Ciphertext Alphabet Disk: Q W E R T Y U I O P A S D F G H J K L Z X C V B N M

Message: HELLO

Step 1: H → I (ciphertext)
Step 2: E → Y
Step 3: L → F
Step 4: L → H
Step 5: O → L

Ciphertext: I Y F H L

After each letter, disks are permuted, ensuring the next plaintext letter uses a modified mapping.

Chaocipher: Decoding

Decoding reverses the process using the same initial disk arrangement and applying identical permutations after each letter. This symmetry guarantees that the ciphertext can be fully reverted to the original plaintext:

Ciphertext: I Y F H L

Apply disk permutations in reverse order:
Step 1: I → H
Step 2: Y → E
Step 3: F → L
Step 4: H → L
Step 5: L → O

Plaintext: HELLO

Chaocipher: Notes

The Chaocipher remained a closely guarded secret until Byrne’s papers were released in 2010. Its method demonstrates an early attempt at dynamic substitution, and it can be seen as a bridge between traditional polyalphabetic systems like the Vigenère Cipher and mechanical rotor-based ciphers such as the Enigma Cipher. Its strength lies in the ever-changing alphabets, which make statistical attacks far more difficult than with fixed-key systems.

Chaocipher