Skip to main content
CipherChronicle

Cipher methods Grid

Trifid cipher (Delastelle)

3D extension of bifid: 3×3×3 cube (27 cells) instead of a 2D grid. Each letter is three coordinates, boosting diffusion.

Family :
Grid
Difficulty :
Advanced
Era :
Around 1902, Félix Delastelle
Inventor :
Félix Delastelle

Also known as : Delastelle trifid

The trifid cipher is the 3D version of the bifid, also invented by Félix Delastelle around 1902. Instead of a 2D grid (5×5 = 25 cells, one “lost” cell), it uses a 3×3×3 cube = 27 cells, enough for the full alphabet plus one extra character (often . or +).

Each letter is thus represented by three coordinates (not two), and fractionation works on three “layers” instead of two. The triple diffusion makes the method even more robust than bifid.

Principle

The cube

The alphabet + one extra character fills a 3×3×3 cube, typically keyed:

Layer 1 (z=1):   Layer 2 (z=2):   Layer 3 (z=3):
    1 2 3            1 2 3            1 2 3
  1 K E Y          1 D F G          1 S T U
  2 W O R          2 H I J          2 V X Z
  3 A B C          3 L M N          3 . P Q

Each letter has (x, y, z) coordinates — three digits from {1, 2, 3}.

Encryption

Just like bifid, coordinates are written on separate lines:

Plain   : C I P H E
Layer z : 1 2 3 2 1
Row y   : 3 2 3 2 1
Col x   : 3 2 2 1 2

Read z then y then x concatenated, group by triplets to reform cube coordinates, and look up in the cube.

For CIPHE: reading 1 2 3 2 1 | 3 2 3 2 1 | 3 2 2 1 2 = 123213232132123 → triplets 123, 213, 232, 132, 123 → new letters.

(Exact values depend on the chosen cube.)

For CIPHERCHRONICLE, full trifid yields approximately HTPMCBRSWKOVFGD.

Variants

  • 2D bifid — direct ancestor, simpler but less diffused.
  • Block-wise trifid — applied to fixed-size blocks (typically 5 or 7 letters), with local fractionation.
  • 3D Trithemius — modern variants exploiting similar 3D structures.

Strengths and weaknesses

Strengths

  • Maximum diffusion for a hand cipher: a plain letter touches three cipher letters.
  • Statistical analysis of ciphertext becomes very hard, even in bulk.
  • The cube can be permuted by a key, multiplying the keyspace.

Weaknesses

  • Still hand-applicable, so breakable with enough cribs: a handful of known plain letters at the right positions constrains the cube.
  • Block size limits effective diffusion: in a 5-letter block, each letter touches only 15 digits.
  • The key is the cube: guessing the permutation breaks everything.

For context, trifid was never widely used operationally — its interest is pedagogical and historical: one of the most sophisticated hand methods ever proposed.

In CipherChronicle

Trifid is the summit of hand-diffusion ciphers. Puzzles can display the three layers of the cube in parallel, or even an animated 3D visualization — a striking effect for the player.

Grid

H
T
P
M
C
B
R
S
W
K
O
V
F
G
D
Q
R
S
T
U
V
W
X
Y
Z
KeyKeyed 3×3×3 cube
  1. 1

    Ciphertext

    Heavily diffused distribution — each plain letter touches three cipher letters.

  2. 2

    Underlying 3×3×3 cube

    The alphabet + one extra character fills all 27 cells of a cube.

  3. 3

    Hypothesis: block-wise trifid, keyed cube

    Each letter gives three coordinates; all three are separated then recombined per block.

  4. 4

    Triplet reconstruction

    Split into three halves, re-read by triplets to recover the coordinates.

  5. 5

    Message revealed

    After triple inverse fractionation, the plaintext emerges.