On the Subject of Chinese Remainder CM
China.
If the Submit Button is white, follow the instructions under Encrypt Instructions. Otherwise follow the instructions under Decrypt Instructions.
Take note: Some parts of this cipher use A1Z26 (normal alphabetic position) while some use A1Y25Z0 (normal for A–Y, but Z is 0).
Decrypt Instructions
Append any letters on screen 2 to the end of your existing encrypted word.
Start with a value v of 0 (zero). Then, for each letter in the encrypted word, multiply v by 26 and add the A1Y25Z0 value of the letter.
For each letter on screen 1:
- Convert the letter into a number using A1Z26 and add 26.
- Take v modulo that number.
- Convert the result back to a letter using A1Z26.
The letters obtained this way form the decrypted word.
Example
Encrypted word: YJOXGAAK + S (from screen 2)
v = (((((((25×26+10)×26+15)×26+24)×26+7)×26+1)×26+1)×26+11)×26+19 = 5305916823213
Screen 1: MKXOQCUW
5305916823213 % (13 + 26) = 6 = F
5305916823213 % (11 + 26) = 5 = E
5305916823213 % (24 + 26) = 13 = M
5305916823213 % (15 + 26) = 9 = I
5305916823213 % (17 + 26) = 14 = N
5305916823213 % (3 + 26) = 9 = I
5305916823213 % (21 + 26) = 19 = S
5305916823213 % (23 + 26) = 13 = M
Decrypted word: FEMINISM