On the Subject of the Bubble CM

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

Take the keyword on screen 1 and replace any Zs with Xs. Then create a key using the keyword and the Boolean Expression on screen A with an alphabet absent of the letter Z. Rearrange the key into a 5×5 matrix. This will be referred to as the Matrix Key.

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

Encrypt Instructions

  • Shift the rows/columns of the Matrix Key so that the Nth letter of the keyword on screen 1 becomes the center of the matrix.
  • Find the Nth letter of the encrypted word in the Matrix Key and decrypt it by rotating 90 degrees clockwise from its position.
  • The letter you end up on becomes your Nth decrypted letter.
  • When you reach the end of the keyword, treat it as if it wraps around to the beginning of the keyword.

Decrypt Instructions

  • Shift the rows/columns of the Matrix Key so that the Nth letter of the keyword on screen 1 becomes the center of the matrix.
  • Find the Nth letter of the encrypted word in the Matrix Key and decrypt it by rotating 90 degrees counter clockwise from its position.
  • The letter you end up on becomes your Nth decrypted letter.
  • When you reach the end of the keyword, treat it as if it wraps around to the beginning of the keyword.

Finally, if any of the letters on screen 3 match at the same position as any of the letters of your encrypted word, replace that letter with a Z. You should now have an decrypted word.

If you took out a letter, insert that letter back into position equal to the number on screen C.

Example

Encrypted Word: MRGYUC
Screen 2: NICK
Screen 3: OSSIQQ
Using Encrypt Rules

FBCDE
KGHIJ
RLNOQ
YTUVX
PSWAM

M + N → P

SWAMP
BCDEF
GHIJK
LNOQR
TUVXY

R + I → U

YTUVX
PSWAM
FBCDE
KGHIJ
RLNOQ

G + C → S

AMPSW
DEFBC
IJKGH
OQRLN
VXYTU

Y + K → I

FBCDE
KGHIJ
RLNOQ
YTUVX
PSWAM

U + N → L

SWAMP
BCDEF
GHIJK
LNOQR
TUVXY

C + I → E

PUSILE + OSSIQQ → PUZZLE
Decrypted Word: PUZZLE