1. Trifid Cipher encoder
Text : ABCD efghi
Group Size : 6
Alphabet27 : abcdefghijklmnopqrstuvwxyz+Solution:The Trifid cipher is a polyalphabetic substitution cipher, that uses a 3x3x3 cube to represent 27 characters (A-Z+). It converts each letter into 3 coordinates(layer, row, column), then rearrange them and convert them back to letters to get ciphertext
Key_Alphabet = abcdefghijklmnopqrstuvwxyz+
The text is converted to its triplet coordinates (layer, row, column), then written vertically, in group of 6 columns| Plaintext | a | b | c | d | e | f | g | h | i |
| Text Triplet | 111 | 112 | 113 | 121 | 122 | 123 | 131 | 132 | 133 |
| Layer | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| Row | 1 | 1 | 1 | 2 | 2 | 2 | 3 | 3 | 3 |
| Col | 1 | 2 | 3 | 1 | 2 | 3 | 1 | 2 | 3 |
Read each group in rows111111,111222,123123 | 111,333,123
Now divided up into triplet again and this triplet again turned back to letters| Combined Triplet | 111 | 111 | 111 | 222 | 123 | 123 | 111 | 333 | 123 |
| Ciphertext | a | a | a | n | f | f | a | + | f |
| Plaintext | : abcdefghi |
| Key_Alphabet | : abcdefghijklmnopqrstuvwxyz+ |
| Group Size | : 6 |
| Ciphertext | : aaanffa+f |
2. Trifid Cipher encoder
Text : hello world
Group Size : 4
Alphabet27 : abcdefghijklmnopqrstuvwxyz+Solution:The Trifid cipher is a polyalphabetic substitution cipher, that uses a 3x3x3 cube to represent 27 characters (A-Z+). It converts each letter into 3 coordinates(layer, row, column), then rearrange them and convert them back to letters to get ciphertext
Key_Alphabet = abcdefghijklmnopqrstuvwxyz+
The text is converted to its triplet coordinates (layer, row, column), then written vertically, in group of 4 columns| Plaintext | h | e | l | l | o | w | o | r | l | d |
| Text Triplet | 132 | 122 | 213 | 213 | 223 | 322 | 223 | 233 | 213 | 121 |
| Layer | 1 | 1 | 2 | 2 | 2 | 3 | 2 | 2 | 2 | 1 |
| Row | 3 | 2 | 1 | 1 | 2 | 2 | 2 | 3 | 1 | 2 |
| Col | 2 | 2 | 3 | 3 | 3 | 2 | 3 | 3 | 3 | 1 |
Read each group in rows1122,3211,2233 | 2322,2223,3233 | 21,12,31
Now divided up into triplet again and this triplet again turned back to letters| Combined Triplet | 112 | 232 | 112 | 233 | 232 | 222 | 233 | 233 | 211 | 231 |
| Ciphertext | b | q | b | r | q | n | r | r | j | p |
| Plaintext | : helloworld |
| Key_Alphabet | : abcdefghijklmnopqrstuvwxyz+ |
| Group Size | : 4 |
| Ciphertext | : bqbrqnrrjp |