On the Subject of Logical Ternary Manipulation CM

A machine that knows no bounds when it comes to ciphers.

From the Synapse Cipher module by Kilo Bites and VFlyer.

Convert each letter of the encrypted word into ternary by using the Ternary Table:

Ternary Table

ABCDEFGHIJKLM
001002010011012020021022100101102110111
NOPQRSTUVWXYZ
112120121122200201202210211212220221222

Concatenate each 3 digit number into a single ternary string in the order of which you got them. This will be referred to as TA.

Concatenate the ternary strings displayed on the screens in this order: 123. This will be referred to as TB.

If the Submit Button is white, follow the instructions under Encrypt Instructions. Otherwise follow the instructions under Decrypt Instructions.

Encrypt Instructions

  • Take TA and split it into 3 rows of X digits where X is equal to the encrypted word’s length.
  • Read the ternary string top to bottom, left to right to get a new ternary string.
  • Take each digit from the resulting ternary string and add it with each digit from TB, modulo 3.
  • Convert each 3 digit ternary back into letter via the Ternary Table to get your decrypted word.

Decrypt Instructions

  • Take each digit from TA and subtract it with each digit from TB, modulo 3.
  • Take the resulting ternary string and write it top to bottom, left to right to form 3 rows of X digits where X is equal to the encrypted word’s length.
  • Read the ternary string left to right, top to bottom to get a new ternary string.
  • Convert each 3 digit ternary back into letter via the Ternary Table to get your decrypted word.

Example 1

Encrypted Word: DRDY
Screens 123: 202001211111
Using Encrypt Rules

DRDY
011200011221
0112
0001
1221
001102102211
202001211111
200100010022
200100010022
RICH

Decrypted Word: RICH

Example 2

Encrypted Word: IVZNW
Screens 123: 122212120022112
Using Decrypt Rules

IVZNW
100211222112212
100211222112212
122212120022112
011002102120100
00111
10020
12200
001111002012200
AMBER

Decrypted Word: AMBER