On the Subject of the Digrafid CM
A machine that knows no bounds when it comes to ciphers.
Create a key using the keyword on screen 1 and the Boolean Expression on screen A. Place a # at the end of the key. This will be called Key A.
Create a 2nd key by doing the same steps to create Key A but with the keyword on screen 2 and the Boolean Expression on screen B. This will be called Key B.
Swap the character shown on screen 3 with the #, using the left character for Key A, and the right character for Key B.
Create a matrix by placing Key A above a string of Arabic numerals going from 1–9 and put another string of Arabic numerals going from 1–9 on the side in reading order forming a 3×3 square. Then take Key B and put it below the string of numbers where Key A is, then put a string of Arabic numerals going from 1–9 on the side going top to bottom, left to right forming a 3×3 square.
Append the character on screen C to the encrypted word. Split the encrypted word into letter pairs. Depending on which instruction is required, apply it to each pair of letters.
If the Submit Button is white, follow the instructions under Encrypt Instructions. Otherwise follow the instructions under Decrypt Instructions.
Encrypt Instructions
- 1: Take the Nth letter pair and find the 1st letter in Key A and the 2nd Letter in Key B.
- 2: Create a 3 digit number by using the letters in the Keys: Column of Key A, Rows of Key A and Key B where one number is present for both, and Column of Key B.
- 3: Write this number top to bottom, to the right of any previous numbers.
- 4: Repeat steps 1 - 3 for each letter pair to get a series of numbers. Read the digit string in reading order to obtain X 3-digit sequences. X is equal to the encrypted word’s length, divided by 2.
- 5: Take the Nth 3-digit sequence and use it to get a Nth decrypted letter pair: 1st number as column and 2nd number as row for Key A, 2nd number as row and 3rd number as column for Key B.
- 6: Repeat step 5 for each 3-digit sequence to get your decrypted word.