Find adventure
My adventures Online Events Kits Boxes Challenges Shows Services Pages
Privacy Policy Terms of Use Sponsors About Contacts FAQ Pages Services Shows Boxes Kits Online Events My adventures

What is Trifid cipher?

The Trifid cipher is the Bifid cipher taken to one more dimension. Instead of using a 5x5 Polybius square, you use a 3x3x3 cube. And there is additional group size variable.

 

First, a mixed alphabet is splitted into 3x3x3 cube:

 

123
 123
1ABC
2DEF
3GHI
 123
1JKL
2MNO
3PQR
 123
1STU
2VWX
3YZ+

 

The message "SECRETMESSAGE" is converted to its coordinates (Layer-Row-Column) but instead of writting them horizontally, they are written vertically beneath:

 

SECRETMESSAGE
3112132133111
1213212211132
1233221211112

 

The next step is to use a 'group size' variable, which is a number usually between 5 and 20, which is part of the key material agreed on by both sender and receiver. If we take a period of 5, then we will get:

 

SECRE TMESS AGE
31121 32133 111
12132 12211 132
12332 21211 112

 

Then we write down the numbers by reading horizontaly in each group.

 

311211213212332 321331221121211 111132112 ->

311 211 213 212 332 - 321 331 221 121 211 - 111 132 112 

 

Then the triplets are turned back into letters using the same cube:

 

SJLKZ VYMDJ AHB -> SJLKZVYMDJAHB

 

To decrypt, the procedure is simply reversed.