How it works
This trifid cipher decoder turns each code letter into a three-digit cell, unshuffles the digits inside each group and reads the message back. Below are all 27 cells under four keys.
Read the full guide
How the key fills the cells
The key fills the cells from 111 to 333: its letters once each, then the unused alphabet, then a plus sign. PUDDING fills the first square with PUD, ING and ABC. In groups of 5, JWBAP WYPCA NFIFR BKPGS RIFPY reads leave the trifle in the fridge.
Right key, wrong words
Check the group size first. Decoded in sevens, the opening code begins MLUZHHP with the key correct. Open Try every group size and press Use on the row that reads. If the key holds a plus sign or #, match 27th character under More options. Wikipedia follows Delastelle with a plus sign. The American Cryptogram Association prints # and calls the group size the period.
Tips
- One mistyped letter spoils at most three. Make the opening code's seventh letter U: LEAVE XHEDP IFLE IN THE FRIDGE.
- Avoid group sizes of 3, 6 and 9: each code letter is all layers, all rows or all columns.
- A last group of one letter is sent as itself. An empty Key box means the plain alphabet.
Questions and answers
Why does a trifid cipher have 27 cells?
Three digits of three values each make 27 combinations, one more than the alphabet. Two symbols would give 8 cells, four 64. Félix Delastelle described the cipher in 1902, extending his earlier bifid. Trifid means divided into three parts.
Can a trifid cipher decoder work without the key?
Not this one. It tries every group size, never every key: 27 characters have nearly 11 octillion orders. Try an empty key first, then any word in the clue. Counting letters says little, because each code letter depends on three letters of the message.
How do I decode a trifid cipher by hand?
Take one group. Write each code letter's three digits in a line, cut the line into three rows and read down the columns: each column is one letter's cell. The working, step by step shows it. A 1902 pencil cipher, never for passwords.