Home › Ciphers › Twin Bifid & Trifid
Twin Bifid & Twin Trifid
The twins are not stronger versions of Bifid and Trifid — they are a pairing of messages. Take two messages that open with the same phrase, encipher the first with Bifid (or Trifid) at one period and the second at a different period, both under the same keyed square (or cube), and send the pair together. The shared opening is the type's built-in crib: the solver knows the two plaintexts agree for their first stretch — the ACA recommends at least eighteen letters for Twin Bifid, sixteen for Twin Trifid — and must use that bridge to pull one square out of two different fractionation rhythms. This tool runs the pair side by side, reports the shared opening it finds, enforces the ACA's period warnings, and is pinned to the Young Tyros tutorial's worked pair, reproduced exactly.
Twin Bifid and Twin Trifid each encipher two messages that share an opening phrase under one keyed square (Bifid) or cube (Trifid), the first message at one period, the second at another. Neither message is enciphered twice — the twinship is between the messages, and the shared opening is the crib the type is built around.
ACA types Twin Bifid and Twin Trifid, from the Delastelle fractionation family as taught in the Young Tyros tutorial.
Run the pair — the ACA tutorial example is loaded
Shared opening: 8 letters (THEENDIS) — the ACA recommends at least 18 for Twin Bifid; the tutorial pair is a specimen · square EXAMP LBCDF GHIKN OQRST UVWYZ
Everything runs in your browser — nothing is uploaded.
One key, two rhythms, a shared first breath
Build one keyed square (Twin Bifid) or cube (Twin Trifid) from the keyword. Write two messages that begin with the same words — a standard opening, a shared address header, any common phrase of at least the ACA's recommended length: eighteen letters for Bifid, sixteen for Trifid. Encipher the first message with the base system at period one, the second at period two. That is the whole construction; each message is enciphered once, and the pair travels together. Decoding reverses each message at its own period under the same square or cube.
The design's intelligence is in what the pairing does to the two sides of the table. For the legitimate reader, nothing changes — two ordinary decodes. For the solver, the pair is a single problem with a hinge: the first eighteen-or-so letters of both plaintexts are the same letters, fractionated two different ways under one unknown square. Every candidate square can be tested against both rhythms at once, and the shared opening supplies known plaintext on both sides of the hinge — a built-in crib that makes the twin a fair, self-contained puzzle: hard, because two period rhythms must be solved together; fair, because the crib is structural and guaranteed. The ACA's period warnings protect the fairness from the other side: for Twin Bifid the two periods should not both be even, and for Twin Trifid not both divisible by three — periods sharing a factor make the two fractionations resonate, align the rhythms, and hand the square to the solver faster than the constructor intended. The tool reports the warning when a pair breaks the rule.
Delastelle's systems, the ACA's pairing
Bifid and Trifid are Félix-Marie Delastelle's, from his 1901–02 treatise; the twin types are the American Cryptogram Association's development of them, catalogued as their own cipher types and taught in the association's Young Tyros tutorial with a worked pair of messages — the source this page's tool is pinned to. The tutorial's Twin Bifid specimens open alike, as the type requires: "THE END IS NEAR" at period 3 gives RPLALYKITEOI, and "THE END IS DISTANT" at period 5 gives RENLPCQKKRSASWZ, both under the square keyed by EXAMPLE — and both are reproduced exactly by the tool above. The tutorial pair's shared opening is only eight letters, a specimen's economy; the ACA's stated minima for the type (eighteen letters Bifid, sixteen Trifid) are what a constructor setting a fair twin is expected to give the solver. No published Twin Trifid worked pair exists in the tutorial material; this page's Trifid side is the pinned Trifid engine (itself verified against Delastelle's own published example) run under the same pairing, and it is labelled as exactly that.
The loaded square and cube
| Bifid square (EXAMPLE) | EXAMP · LBCDF · GHIKN · OQRST · UVWYZ |
|---|---|
| Trifid cube (EXAMPLE) | EXAMPL+BC · DFGHIJKNO · RSTUVWYZQ |
| The pairing | Message 1 at period 1, message 2 at period 2 — one pass each, one shared key |
| Shared opening | ACA minima: 18 letters (Twin Bifid) · 16 letters (Twin Trifid) |
| Period warnings | Bifid: not both even · Trifid: not both divisible by 3 (ACA guidance) |
The cube reads in three layers of nine: EXAMPL+BC, then DFGHIJKNO, then RSTUVWYZQ — the keyword EXAMPLE with the + seated inside the first layer and the alphabet completed in order, Q taking the final cell. The Bifid square is the 25-letter reduction of the same keyword, J folded into I. Both are printed live under the tool's controls for whatever keyword you set, so the shipped artefact is always the one in front of you.
The tutorial pair, reproduced
Example 1 — Twin Bifid: the Young Tyros pair
Run live above. The two plaintexts share their first eight letters — THE END IS — before diverging, and the ciphertexts agree only in their first letter: each period block smears the divergence across its whole span, which is fractionation's diffusion doing its work. The solver's hinge is not visible in the ciphertext; it is in the knowledge that the openings match.
Example 2 — the same pair as Twin Trifid
Switch the tool's system to Twin Trifid and set the periods to 5 and 7. Same messages, same keyword, the cube instead of the square — and the + of Trifid's 27-symbol alphabet travelling openly in the first ciphertext, the family's signature. This pair is the tool's own (no published Twin Trifid pair exists); it is pinned in the build suite so the page cannot drift from the engine.
Example 3 — a forbidden period pair
Set the Bifid periods to 4 and 6 and read the note under the results: both periods are even, and the ACA recommends against it — periods sharing a factor make the two fractionations resonate and hand the solver the square faster. The encipherment still runs; the warning is the type's own rule, surfaced rather than enforced, because a page about a system should teach its rules, not silently obey them for you.
Solving the twins
The twin solve is a single-square recovery with twice the evidence and one gift. The gift is the hinge: the shared opening is known plaintext in both messages, so a candidate square can be scored by decrypting both openings and measuring how long the two plaintexts agree — the true square makes them agree for the full shared stretch, wrong squares break the agreement within a letter or two. Hill-climbing the square against that double score converges far more reliably than attacking either message alone, which is precisely the fairness the constructor bought by declaring the opening. Take the hinge away — two unrelated messages at two periods — and the type collapses into two separate, harder Bifid problems; the twin's identity is the shared opening.
- Security status: a constructor's type — designed to be solved with effort, using the crib it guarantees.
- What gives it away: the declared shared opening, and the period pair's rhythm in each message.
- The working order: climb one square against both messages at once, scored on the shared opening's agreement.
The fractionation family
| Relative | How it differs | Solve it with |
|---|---|---|
| Bifid | The base system alone — one message, one period, no pairing and no hinge | The Bifid page |
| Trifid | The base system in the cube — three coordinates, one message at a time | The Trifid page |
| CM Bifid | Bifid under a cipher-machine discipline — the family's other hardening | The CM Bifid page |
| Condi | Fractionation's cousin: coordinates chained letter to letter instead of blocked by period | The Condi page |
Read as a set, the family shows two different ideas of strength. CM Bifid hardens the mechanism; the twins harden the problem — nothing about Bifid changes, but the solver must now satisfy two rhythms and one square simultaneously, with a crib that is guaranteed rather than guessed. It is the most ACA idea in the catalogue: a cipher type defined as much by its solving contract as by its encipherment.
A tutorial's showcase
The twins live where the ACA teaches: they are the Young Tyros tutorial's demonstration that a cipher type can be a relationship between messages, not just a transformation of one. Constructors set twins because the pairing makes a fair but serious solve — the crib is declared, the difficulty is real — and solvers meet them as the point where single-message period-hunting stops being enough and genuine model-building starts. As the closing pages of this site's Delastelle set, they also mark the boundary of the hand era's ingenuity: everything above them in the catalogue's strength order is a machine.
Feel the hinge
Practice 1 — measure the shared opening
Count letters only, spaces removed, until the first difference.
Reveal the answer
Eight — THEENDIS — after which NEAR and DISTANT diverge. The tool reports the same count under the results. Eight is a specimen's opening; a constructor setting a fair twin owes the solver eighteen (Bifid) or sixteen (Trifid).
Practice 2 — decode the pair
Use the tool's Decode mode: each ciphertext returns at its own period.
Reveal the answer
THEENDISNEAR and THEENDISDISTANT — the tutorial pair, spaces not enciphered, as throughout the fractionation family. Note what decode does not need: the shared opening. The hinge is the solver's tool, not the reader's.
Frequently asked questions
Is each message enciphered twice?
No — and the confusion is understandable, because "twin" suggests doubling. Each message is enciphered once, at its own period. The twinship is between the two messages: one key, two periods, a shared opening. An earlier draft of this very page described a double pass; the tutorial's worked pair disproves it — a double encipherment of THE END IS NEAR at periods 3 then 5 gives OLCUGWKMRURA, not the published RPLALYKITEOI, which is the single pass at period 3. The page was corrected to the source.
Why must the messages share an opening?
Because the shared opening is the type's solving contract: it guarantees the solver a stretch of known plaintext in both messages, against which one square can be recovered from two rhythms. Without it the pair is just two unrelated Bifid messages — harder, but a different and less interesting problem, and not the catalogued type.
Is there a published Twin Trifid example?
None in the ACA tutorial material this page draws on — the page says so rather than implying one. The Trifid side here is the verified Trifid engine (pinned to Delastelle's own published example on the Trifid page) run under the twin pairing. The Twin Bifid side, by contrast, is pinned exactly to the tutorial's two worked messages.
What if my two messages share no opening?
Then the tool still enciphers them — the pairing rules are guidance, and the note under the results will report a shared opening of zero. But what you have made is two ordinary Bifid (or Trifid) messages under one key, not a Twin in the ACA sense, and the solving story on this page no longer applies to them.