## On the Subject of the Mirrored Matrix CM

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

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

Turn the letter on screen 2 into a value via the Value Table. Modulo this number by 4 to determine the initial angle of the axis. This will be referred to as the Matrix Axis.

 0 1 2 3 | / - \

If the Boolean Expression on screen B is true, the indicated direction is clockwise. Otherwise, the indicated direction is counter-clockwise.

If there is a number on screen C, take out the letter at that position in the encrypted word. Set aside this letter to be put back in at a later step.

Split the encrypted word into letter pairs and for each pair, do the following:

• Shift the rows/columns of the Matrix Key so that the 1st letter of the encrypted pair becomes the center of the matrix
• Find the 2nd letter of the encrypted pair in the Matrix Key and decrypt it by reflecting its position over the Matrix Axis.
• However, if this letter is within the Matrix Axis, rotate the Matrix Axis 90 degrees, reflect the letter over that axis, then rotate the Matrix Axis 90 degrees again.
• The letter you end up on becomes your 1st decrypted letter.
• Now shift the rows/columns of the Matrix Key so that the decrypted letter you got from the previous step becomes the center of the matrix.
• Repeat the steps of getting the 2nd decrypted letter by using the 1st letter of the encrypted pair.
• Rotate the Matrix axis 45 degrees in the indicated direction.

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

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 J. You should now have an decrypted word.

#### Example

Encrypted Word: TVUZFEK
Initial Axis: D → 5 → 1 → /
Indicated direction: CCW
Screen 3: FLIESNO
Screen C: 6

TVUZFEK + 6 → TVUZFK

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

TV

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

V + / → F

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

T + / → U

UZ

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

Z + | → N

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

U + | → G

FK

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

K + \ → L

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

F + \ → S

FUNGLS + E + 6 → FUNGLES
FUNGLES + FLIESNO → JUNGLES
Decrypted Word: JUNGLES