## On the Subject of the Transposed Halved Polybius CM

Create a key using the keyword on screen 1 and the Boolean Expression on screen A. Take the resulting key and enter it into the Halved Polybius Square, in reading order, filling the left half 1st. The Halved Polybius Square is laid out like the diagram below:

 1 2 3 4 5 1 2 3 4 5 1 2 3 # # # # L R

Convert each letter of the encrypted word into 3 coordinates and write them out top to bottom in the order Half, Row, Column and to the right of any previous coordinates. This will be referred to as the Transposed Matrix.

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

#### Encrypt Instructions

• For each letter in backwards order of the keyword on screen 2, take the Nth letter of the keyword and find it in the Halved Polybius Square, converting it into 3 coordinates.
• If N is odd, shift the row of that coordinate in the Transposed Matrix to the right by the column coordinate. When doing this, make sure to not move any 3s in the 2nd row and any 4s/5s in the 3rd row.
• Otherwise, start at the column of the Transposed Matrix equal to the coordinate’s column, wrapping around if necessary (Column A). Then continue counting columns to the right equal to the coordinate’s row, wrapping around if necessary (Column B). Swap Column A with Column B.
• After processing each letter of the keyword, convert each coordinate back into a letter using the Transposed Matrix to get a decrypted word.

#### Decrypt Instructions

• For each letter of the keyword on screen 2, take the Nth letter of the keyword and find it in the Halved Polybius Square, converting it into 3 coordinates.
• If N is odd, shift the row of that coordinate in the Transposed Matrix to the left by the column coordinate. When doing this, make sure to not move any 3s in the 2nd row and any 4s/5s in the 3rd row.
• Otherwise, start at the column of the Transposed Matrix equal to the coordinate’s column, wrapping around if necessary (Column A). Then continue counting columns to the right equal to the coordinate’s row, wrapping around if necessary (Column B). Swap Column A with Column B.
• After processing each letter of the keyword, convert each coordinate back into a letter using the Transposed Matrix to get a decrypted word.

#### Example 1

Encrypted Word: OFOECB
Key: CDFGHIJKLMOPQRSUVWXYZBEATN
Keyword: FIDDLE
Using Encrypt Rules

 1 2 3 4 5 1 2 3 4 5 1 C D F G H R S U V W 2 I J K L M X Y Z B E 3 O P Q # # A T N # # L R
 LLLRLR313212131514 LLLRLR113232131514 LLLRLR113232131514 LLLRLR131232113514 LRLLLR131232113514 LRLLLR131232311514 LLRLRL131232311514

Decrypted Word: FORMAL

#### Example 2

Encrypted Word: CWSHV
Key: ABCDEFGHJLMNOPQTUVWXYZRISK
Keyword: MASTERY
Using Decrypt Rules

 1 2 3 4 5 1 2 3 4 5 1 A B C D E P Q T U V 2 F G H J L W X Y Z R 3 M N O # # I S K # # L R
 LRRLR1232131235 LRRLR1232112335 RLRLR2132121335 RLRLR2132133215 RLLRR2123133125 RLLRR2123133125 RRLRL2123135123 RRLRL1213235123

Decrypted Word: TRASH