## 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

#### Alternative Method

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 Boolean Expression on screen B is true, follow the instructions under Encrypt Instructions. Otherwise follow the instructions under Decrypt Instructions.

#### Encrypt Instructions

• Write 2 alphabets, one on top of the other.
• Shift the bottom alphabet to the right X times where X is the Caesar Offset.
• Find the Nth letter of the encrypted word in the top alphabet.
• Replace it with the letter below it in the bottom alphabet.
• Do this for each letter of the encrypted word to get a decrypted word.

#### Decrypt Instructions

• Write 2 alphabets, one on top of the other.
• Shift the bottom alphabet to the left X times where X is the Caesar Offset.
• Find the Nth letter of the encrypted word in the top alphabet.
• Replace it with the letter below it in the bottom alphabet.
• 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

 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z V W X Y Z A B C D E F G H I J K L M N O P Q R S T U

UWJANJB → PREVIEW

#### Example 2

Encrypted Word: JCYB
Caesar Offset: (1 mod 25) + 1 = 2
Using Decrypt Rules

 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z C D E F G H I J K L M N O P Q R S T U V W X Y Z A B

#### Table Version

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 Boolean Expression on screen B is true, subtract the Caesar Offset from 26. This is your new Caesar Offset.

For each letter of the encrypted word, use the offset as the row and the letter as the column in the table below. The intersection in the table will give you a decrypted letter.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
01BCDEFGHIJKLMNOPQRSTUVWXYZA
02CDEFGHIJKLMNOPQRSTUVWXYZAB
03DEFGHIJKLMNOPQRSTUVWXYZABC
04EFGHIJKLMNOPQRSTUVWXYZABCD
05FGHIJKLMNOPQRSTUVWXYZABCDE
06GHIJKLMNOPQRSTUVWXYZABCDEF
07HIJKLMNOPQRSTUVWXYZABCDEFG
08IJKLMNOPQRSTUVWXYZABCDEFGH
09JKLMNOPQRSTUVWXYZABCDEFGHI
10KLMNOPQRSTUVWXYZABCDEFGHIJ
11LMNOPQRSTUVWXYZABCDEFGHIJK
12MNOPQRSTUVWXYZABCDEFGHIJKL
13NOPQRSTUVWXYZABCDEFGHIJKLM
14OPQRSTUVWXYZABCDEFGHIJKLMN
15PQRSTUVWXYZABCDEFGHIJKLMNO
16QRSTUVWXYZABCDEFGHIJKLMNOP
17RSTUVWXYZABCDEFGHIJKLMNOPQ
18STUVWXYZABCDEFGHIJKLMNOPQR
19TUVWXYZABCDEFGHIJKLMNOPQRS
20UVWXYZABCDEFGHIJKLMNOPQRST
21VWXYZABCDEFGHIJKLMNOPQRSTU
22WXYZABCDEFGHIJKLMNOPQRSTUV
23XYZABCDEFGHIJKLMNOPQRSTUVW
24YZABCDEFGHIJKLMNOPQRSTUVWX
25ZABCDEFGHIJKLMNOPQRSTUVWXY