Classical Cryptography

Bifid Cipher: Polybius Fractionation, Delastelle’s Breakthrough & Modern Diffusion

An exhaustive educational breakdown of the Bifid Cipher: Félix Delastelle’s 1901 invention, Polybius square coordinate decomposition, horizontal stream fractionation, Claude Shannon’s concept of diffusion, and runnable Python auto-solvers.

By CipherVerse Cryptography Academy • 2026-09-14 • 9 min read

1. Historical Origins: Félix Delastelle & Fractionation

For more than two thousand years, human cryptography remained divided into two isolated disciplines: Substitution (changing letter identities) and Transposition (changing letter positions).

In 1901, French amateur cryptographer Félix-Marie Delastelle published a revolutionary paper in the "Revue du Génie Militaire", followed by his 1902 magnum opus "Traité Élémentaire de Cryptographie". Delastelle introduced an entirely new cryptographic paradigm that had never existed before: Fractionation (also known as Tomographic Cryptography).

Delastelle’s brilliant revelation was that an encryption algorithm did not have to treat letters as indivisible atomic units. By decomposing each letter into two discrete numerical coordinates, separating the coordinates across time and space, and recombining fragments from completely different letters, Delastelle achieved simultaneous substitution and transposition in a single elegant system.

2. The 5×5 Polybius Square Matrix Key

The first step of the Bifid cipher relies on an ancient Greek concept: the Polybius Square, invented by the Greek historian Polybius around 200 BCE.

The 26 letters of the Latin alphabet are fitted into a 5×5 grid containing exactly 25 cells. To accommodate 26 letters into 25 positions, the letters "I" and "J" are conventionally merged into the same cell (or alternatively, "Q" is omitted).

To key the matrix securely, the sender and receiver agree on a secret keyword (e.g. "KEYWORD"). The keyword is written across the grid with duplicate letters discarded, followed by the remaining unused letters of the alphabet in alphabetical order:

3. The Core Fractionation Principle: Decomposing Coordinates

How does fractionation destroy frequency analysis? In a monoalphabetic or Vigenère cipher, character boundaries remain intact.

In the Bifid cipher, each letter is split into two halves: its Row Coordinate and its Column Coordinate.

The sender writes all the Row coordinates in an upper row, and all the Column coordinates in a lower row. Then, the numbers are read horizontally in sequence (all row coordinates first, followed by all column coordinates).

Finally, this unified numerical stream is grouped into consecutive pairs. Each new pair is looked up in the Polybius square to create the ciphertext letter!

Notice what this achieves: The first ciphertext letter receives its row coordinate from letter 1, and its column coordinate from letter 2! Half of the information from letter 1 has diffused into letter 2, completely scrambling statistical bigrams and single-letter frequencies.

4. Step-by-Step Worked Trace Table: "DEFEND THE WALL"

Let us encrypt the message "DEFEND THE WALL" using the Polybius square keyed with "KEYWORD".

Step 1: Write the plaintext characters and look up their (Row, Column) coordinates.

Step 2: Read horizontally (all Row coordinates followed by all Column coordinates).

Step 3: Group the horizontal sequence into consecutive 2-digit pairs and look up each pair in the Polybius matrix to generate the ciphertext.

Notice what has occurred: The first ciphertext letter "R" (Row 2, Col 1) received its row coordinate from the first letter "D" (Row 2), and its column coordinate from the second letter "E" (Row 1)!

Each ciphertext letter fuses fragments of multiple distinct plaintext letters, creating the world's first tomographic diffusion effect.

5. Reversible Decryption: Slicing & Recombining Coordinate Streams

How does the recipient reverse this complex fractionation? Because the transformation is purely structural and symmetrical, decryption is completely deterministic:

Step 1: Convert each ciphertext letter back into its (Row, Column) coordinates using the Polybius square:

R → (2, 1), F → (3, 1), N → (4, 2), V → (5, 3), K → (1, 1), ..., Z → (5, 5).

Step 2: Flatten all numbers into a single stream of length 2N: "2 1 3 1 4 2 5 3 1 1 2 3 3 2 2 1 2 2 2 1 3 2 4 3 5 5".

Step 3: Split the stream exactly in half: the first N digits form the Rows, and the remaining N digits form the Columns!

Step 4: Read vertical pairs: (Row[i], Col[i]) to reconstruct the exact original plaintext letters.

6. The Conceptual Bridge to Claude Shannon & Modern Block Ciphers

In his seminal 1949 paper "Communication Theory of Secrecy Systems", Claude Shannon defined the two fundamental security requirements for modern ciphers:

1. Confusion: Obscuring the relationship between the secret key and the ciphertext (accomplished via non-linear substitution S-Boxes).

2. Diffusion: Spreading the statistical influence of a single plaintext symbol across multiple ciphertext symbols.

Delastelle’s Bifid cipher was the world’s very first operational demonstration of cryptographic diffusion. By breaking an 8-bit character or coordinate into fragments and dispersing them across neighboring characters, Delastelle anticipated the round structures of modern block ciphers like the Data Encryption Standard (DES) and Advanced Encryption Standard (AES) by nearly half a century.

7. Complete Python Implementation & Solver Suite

Here is a production-grade, standalone Python script featuring keyed Polybius square generation, complete Bifid encryption, decryption, and self-testing verification:

8. Practice Challenge: The Normandy Invasion Dispatch

An authentic World War II Allied dispatch was encoded using a secret keyword in a 5×5 Bifid Polybius square:

Can you identify the keyword used to generate the square and read the famous military order?

Clue: The keyword is a 7-letter ideal representing American independence ("LIB____"). Test your hypothesis in the live CipherVerse Bifid simulator below!

Try Solve in CipherVerse Bifid Tool →

Input the challenge ciphertext and test candidate keywords in real time.

9. Interactive Bifid Cipher Workbench

Ready to experiment with coordinate fractionation and custom Polybius matrices hands-on? The CipherVerse Bifid Solver generates the 5×5 grid in real time, handles letter substitutions automatically, and visualizes the horizontal streaming process.

Everything operates entirely client-side inside your browser with 100% data confidentiality.

Try Launch Bifid Cipher Suite →

Instant Polybius fractionation encryption, decryption, and matrix inspection.