Trifid Explained: The Cube Cipher That Split Letters Three Ways

Trifid explained in plain terms means understanding the cipher that splits every letter three ways, a design from 1901 that hides each character as three coordinates inside a cube and then shuffles the numbers apart. The central question is why three coordinates should beat the two that Bifid already used, and the answer is that a third coordinate spreads each letter across three streams instead of two, so the mixing reaches further and the patterns blur more, and that extra dimension is the whole point of the design.

Trifid is a fractionating cipher invented by the French cryptographer Félix Delastelle and published in his 1901 book Traité Élémentaire de Cryptographie, the same book that introduced Bifid. It turns a message into ciphertext with a three-by-three-by-three cube holding 27 characters, and it is built on the idea that a letter is really three numbers, a layer, a row and a column, which means the design treats letters as points in space, and that geometry is what makes it the most ambitious hand cipher of its day.

This article explains what Trifid is, how it works, and where it runs in the real world.

Key takeaways

  • Trifid is a fractionating cipher from 1901.
  • It was invented by Félix Delastelle of France.
  • It splits each letter into three coordinates.
  • It uses a cube holding 27 characters.
  • It is used in teaching and in cipher history today.

What Trifid is

Trifid is a cipher that turns a message into ciphertext by fractionation in three dimensions, and that extra dimension is what makes it unusual among classical ciphers. A sender writes each letter as three numbers from a cube, then reads the numbers off in a new order, which means the three parts of one letter end up paired with parts of other letters, and that mixing is what destroys the frequency patterns attackers rely on.

Its signature feature is the cube. Most ciphers work on letters or on flat squares, but Trifid works in three dimensions, with 27 characters arranged in three layers of nine, which means every letter becomes a triple of digits from one to three, and because the cube holds 27 cells, it fits the whole alphabet plus one extra character, usually a full stop.

The design was a reaction to the success of Bifid. Delastelle had already split letters in two, and he asked what a third split would buy, so he built a cube, because a cipher that hides letters inside triples gives frequency analysis even less to count, and that ambition is what made Trifid the bigger sibling of his two ciphers.

It became one of the best-known classical ciphers in the world, and it is named in every history of cryptography. Trifid appears in textbooks beside Bifid, it is taught in cipher courses as the three-dimensional version of fractionation, and it is still the first example students meet when they learn that a cipher can work in a cube, which means the design survives as a lesson even though nobody uses it for real secrets.

Its most famous property is the period. Trifid works in blocks of a chosen length, and the coordinates are shuffled only inside each block, which means a short period keeps the mixing gentle while a long period spreads it further, and because the period is part of the key, choosing it well is half the art of using the cipher.

Our guide to Playfair explains the flat-square cipher Trifid grew beyond, and our guide to Atbash explains an older substitution cipher with no fractionation at all.

How Trifid works

Everything starts with the cube, three layers of nine cells filled with the alphabet in a keyed order. Trifid places 27 characters in the cube, with the letters plus one extra symbol, which means every character has a layer, a row and a column, and because the order of the characters is the secret, the cube itself is the key.

Each block begins with the coordinates, written out in three rows beneath the message. The sender writes the layer number of each letter in the first row, the row number in the second, and the column number in the third, which means a block of letters becomes three lines of digits, and because the digits are written vertically in triples, the block is ready to be shuffled.

The shuffle is what makes the design work as a whole. Trifid reads the three rows of digits horizontally, left to right, and then groups them into triples again, which means the first digit of one letter joins digits from two others, and because the triples are re-formed from a single stream, the letters that come out are entirely new.

The period spreads the effect further. A period of five shuffles only five letters at a time, while a period of twenty shuffles twenty, which means longer periods mix the coordinates more thoroughly, and because the period can be any length, the sender chooses how far the diffusion should reach.

The decryption is what keeps the design usable. The recipient writes the ciphertext coordinates in a single row, splits them back into three rows, and reads the triples vertically, which means the process runs in reverse, and because the cube is shared, the plaintext comes back letter by letter.

The ciphertext comes from the cube, read out letter by letter in order. Trifid outputs one ciphertext character per plaintext character, 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 Trifid works: letter parts take turns through the cube, triple after triple, until ciphertext emerges.

Comparing Trifid with other classical ciphers

Trifid is one of several classical ciphers built on fractionation, and each was built with a different emphasis. Bifid is the two-coordinate cipher in a flat square, Playfair is the digraph cipher that swaps letter pairs, and Trifid is the one that splits letters into three coordinates inside a cube, while each approach trades something for something else.

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

Aspect Trifid Bifid Playfair
Split Three coordinates Two coordinates None, uses pairs
Shape Three by three by three cube Five by five square Five by five square
Characters 27 25 25
Year 1901 1901 1854
Best for Teaching cubes Teaching fractionation General classical use

The practical result is that Trifid is the right choice for teaching cubes, Bifid suits teaching fractionation, and Playfair fits general classical use instead.

Where Trifid is used

Teaching uses it as the cube example. Cryptography courses introduce Trifid when they explain that fractionation can work in three dimensions, because it is the clearest case of the idea pushed to its limit, and a student who understands Trifid understands why diffusion matters in every modern cipher.

History uses it to tell the story of 1901. The year Delastelle published his book is one of the great dates in cryptography, and Trifid 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 Trifid cannot be solved by counting single letters, because the letters have been taken apart three ways, and that extra step is the reason puzzle setters reach for it when Bifid feels too easy.

Software libraries use it as a test case. A library that implements classical ciphers usually includes Trifid beside Bifid, because the two share a method and differ only in dimension, 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 Trifid when they want the hardest of Delastelle’s designs, because the cube feels like a proper puzzle, and that challenge is the reason it still appears in cipher competitions.

Strengths and limits

The greatest strength of Trifid is its three-way fractionation. A cipher that splits letters into triples destroys single-letter frequencies more thoroughly than Bifid, and that strength is real, measured in the decades of respect the cipher has enjoyed and confirmed by the analysts who needed new methods to attack it.

It is also a strength that the design is built from familiar parts. A cube, a period and a shuffle are easy to explain once Bifid is understood, and that familiarity is worth more than cleverness in a field where a cipher nobody can use by hand is a cipher nobody remembers.

The limits are real, though, and the biggest is that it is fiddly to use by hand. A period of even ten letters means shuffling thirty digits without error, which means mistakes creep in quickly, and a system that needs real security must use a modern cipher instead.

Trifid checklist

  • Use Trifid for teaching and puzzles, never for real secrets.
  • Remember each letter becomes a layer, a row and a column.
  • Choose a keyed cube, never the plain alphabet.
  • Compare it with Bifid to see the third dimension at work.
  • Note the period controls how far the mixing reaches.
  • Keep the 27th character in mind when decrypting.
  • Try a short period first, then a longer one.
  • Never rely on a hand cipher for anything important.
  • Choose a modern cipher for any message that matters today.

Frequently asked questions

What is Trifid in simple terms?

It is a 1901 cipher that writes each letter as three numbers from a cube, shuffles all the numbers, and reads them back as new letters.

Who invented Trifid?

Félix Delastelle, a French cryptographer who published it in his 1901 book Traité Élémentaire de Cryptographie alongside Bifid.

How is Trifid different from Bifid?

Both split letters and shuffle the parts, but Bifid uses two coordinates in a flat square while Trifid uses three coordinates in a cube with 27 characters.

Is Trifid still secure?

No, it falls to modern analysis and to careful frequency work on the coordinates, so it is only safe for teaching, puzzles and history.

Where is Trifid used?

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

When should I use Trifid?

When you teach three-dimensional fractionation, when you set a hard puzzle, or when you want Delastelle’s most ambitious design.

The bottom line

Trifid explained in one line is this: the cube cipher, a 1901 design that split every letter three ways and showed that fractionation could work in three dimensions at once.

It is proof that adding a dimension can make a cipher stronger, and the reason it still matters is that every modern cipher designed since has been judged partly by the lesson Trifid taught.

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

Latest articles

Scroll to Top