On the Subject of the Affine CM
A machine that knows no bounds when it comes to ciphers.
Turn each letter of the encrypted word into its alphabetic position (A1Y25Z0). These numbers will be your Cs to decrypt.
The number on screen 1 is E and the letter on screen A is X.
Convert the variable X to a Value via the Value Table. Take the resulting value, modulo 25, plus 1. This is your actual X value.
If the Submit Button is white, use Equation A. Otherwise, use Equation B.
Take each number C through the equation then turn it back to a letter.
Equation A
((C * E) + X) mod 26
Equation B
((C - X) * D) mod 26
The instructions to determine D are written on the next page.
Example
Encrypted Word: PUKNE
E: 7
X: S → (9 % 25) + 1 = 10
Submit Button: White
P → ((16 * 7) + 10) % 26 → 18 → R
U → ((21 * 7) + 10) % 26 → 1 → A
K → ((11 * 7) + 10) % 26 → 9 → I
N → ((14 * 7) + 10) % 26 → 4 → D
E → ((5 * 7) + 10) % 26 → 19 → S
Decrypted Word: RAIDS