On the Subject of the Caesar CM
Convert the letter on screen 1 to a Value via the Value Table. Then modulo it by 25, plus 1. The resulting number will be referred to as the Caesar Offset.
If the Submit Button is white, follow the instructions under Encrypt Instructions. Otherwise follow the instructions under Decrypt Instructions.
Encrypt Instructions
- Subtract the alphabetic position (A1Z26) of the Nth letter of the encrypted word by the Caesar Offset.
- If the resulting number is below 1, add 26 to it.
- Turn the number back into a letter (A1Z26).
- Do this for each letter of the encrypted word to get a decrypted word.
Decrypt Instructions
- Sum the alphabetic position (A1Z26) of the Nth letter of the encrypted word and the Caesar Offset.
- If the resulting number is above 26, subtract 26 from it.
- Turn the number back into a letter (A1Z26).
- Do this for each letter of the encrypted word to get a decrypted word.
Example 1
Encrypted Word: UWJANJB
Caesar Offset: (4 mod 25) + 1 = 5
Using Encrypt Rules
UWJANJB → PREVIEW
Example 2
Encrypted Word: JCYB
Caesar Offset: (1 mod 25) + 1 = 2
Using Decrypt Rules
JCYB → LEAD