Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
The Trifid cipher, also invented by Félix Delastelle, extends the Bifid cipher's idea one dimension further — instead of a 2D grid giving each letter a row and column, a 3D cube gives each letter a layer, row, and column.
This tool encrypts or decrypts text using a Trifid cipher, with an optional keyword to customize the underlying cube.
How it works
The 26 letters plus a filler symbol ("+", to make exactly 27 characters) fill a 3x3x3 cube, giving each character a layer, row, and column number (1-3). All the layer numbers are written first, then all the row numbers, then all the column numbers, forming one long sequence — this is re-read in new groups of three, and each group becomes one ciphertext character. Decryption reverses this process to recover the original layers, rows, and columns.
- Enter mode.
- Enter text.
- Enter keyword (optional).
- Click Calculate to see your results.
Examples
Keyword "PLAYFAIR"
"HELLOWORLD" encrypted with the keyword "PLAYFAIR" produces a scrambled sequence that may include the "+" filler character — this is expected and part of the cipher's 27-character alphabet.
Who should use it
- Puzzle and escape-room style word games, including cryptography competitions.
- Teaching advanced fractionation and diffusion concepts in classical ciphers.
Industry applications
- Cryptography education
- Games and puzzles
Advantages
- Even stronger diffusion than Bifid, since each letter influences three coordinate streams instead of two.
- A natural next step after Bifid for exploring fractionation-based ciphers.
Limitations
- Offers no real security against modern cryptanalysis or computing.
- More complex to work through by hand than Bifid, due to the extra dimension.
Common mistakes to avoid
- Using a different keyword for decryption than the one used to encrypt — the cube must match exactly.
- Stripping out the "+" character before decrypting — it's a meaningful part of the ciphertext, not a stray symbol.
Best practices
- Use the Trifid cipher for puzzles or to explore how extending fractionation to 3 dimensions increases diffusion compared to Bifid.
Tips
- If you've already tried Bifid, Trifid is the natural next cipher to explore — same core idea, one more dimension.