Toolstia / Trifid cipher

trifid cipher

The trifid cipher was invented by Felix Delastelle in 1902. It spreads each letter across three coordinates in a cube and mixes the coordinates of a whole block, so every output letter depends on several input letters.

The trifid cipher by Felix Delastelle places 27 symbols in a 3 by 3 by 3 cube. Each symbol becomes three coordinates, the coordinates of each block are written in three rows, and the digits are read off in triples to give new symbols. Spaces and other characters are removed. The period is the block size, and both sides must use the same keyword and period.

How it works

  1. Choose encrypt or decrypt.
  2. Enter an optional keyword and the period.
  3. Type your text and read the result.

The cube

The 27 symbols (A to Z and +) sit in three layers of 3 by 3. A keyword moves its letters to the front of the cube.

How the period works

The text is cut into blocks of the period length. Inside a block, the layer, row and column numbers are written out in three rows, then read off in groups of three to form new letters.

Decrypting

You need the same keyword and period. A wrong period gives gibberish.

Related ciphers

The bifid cipher does the same thing with a flat square and two coordinates.

Questions

Is my text uploaded?

Everything happens in your browser, and nothing you enter is sent anywhere.

Is it secure?

No. It is a hand cipher that can be broken. Use it for puzzles and learning.

What happens to spaces and numbers?

They are removed. Only letters and the plus sign are enciphered.