## On the Subject of the Pizza Slice CM

A machine that knows no bounds when it comes to ciphers.

From the Fur Cipher module by MageMage.

Create a key using the keyword on screen 1 and the Boolean Expression on screen A. Next, create a lattice consisting of 4 rows of letters. If the Boolean Expression on screen 2 is true, the rows will have 6, 7, 6, and 7 letters from top to bottom. Otherwise, they will be 7, 6, 7, and 6. For each row, alternate between placing a letter from the key and a space, starting with a letter on rows with 7 letters and a space for rows 6 letters. This will be referred to as the Pizza Slice Key.

The offset is currently equal to the number displayed on screen B.

If the Submit Button is white, follow the instructions under Encrypt Instructions. Otherwise follow the instructions under Decrypt Instructions.

#### Encrypt Instructions

• Find the Nth letter of the encrypted word in the Pizza Slice Key.
• Move diagonally up left an amount of spaces determined by your offset divided by 7, dropping any remainders and wrapping around. (When you move off the left or right edge go 2 spaces up instead of 1).
• From there move right an amount of spaces determined by the offset modulo 7, wrapping around to the left side of that row.
• The letter that you end up on becomes your Nth decrypted letter.
• Add the alphabetic position of the Nth encrypted letter (A1Z26) to the offset.

#### Decrypt Instructions

• Find the Nth letter of the encrypted word in the Pizza Slice Key.
• Move left an amount of spaces determined by the offset modulo 7, wrapping around to the right side of that row.
• From there move diagonally down right an amount of spaces determined by your offset divided by 7, dropping any remainders and wrapping around. (When you move off the left or right edge go 2 spaces down instead of 1).
• The letter that you end up on becomes your Nth decrypted letter.
• Add the alphabetic position of the Nth decrypted letter (A1Z26) to the offset.

#### Example 1

Encrypted Word: URMRZ
Screen 2: False
Screen B: 13
Using Encrypt Rules

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

U, 13 → S → S
R, 34 → P → O
M, 52 → P → L
R, 65 → G → I
Z, 83 → C → D

Decrypted Word: SOLID

#### Example 2

Encrypted Word: ZYEBY
Screen 2: True
Screen B: 5
Using Decrypt Rules

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

Z, 5 → C → C
Y, 8 → N → H
E, 16 → B → U
B, 37 → G → T
Y, 57 → N → E

Decrypted Word: CHUTE