On the Subject of the Inverted Maroon Cipher
I bet you will feel like a maroon trying to tackle this cipher.
On the module, you will see 3 screens, a keyboard, 2 buttons with a letter on it, and a submit button that displays the current page you're on.
Pressing the right arrow takes you to the next page. Pressing the left arrow takes you to the previous page. There is a total of 2 pages.
On page 1, the top screen shows a 6 letter encrypted word, the middle screen shows a keyword, and the bottom screen shows a number key.
On page 2, the top, middle, and bottom screens displays a random amount of characters.
Step 1: Modified Huffman Cipher
Start by creating an alphabet key by using the keyword on the middle screen on page 1.
Remove any duplicate letters from the keyword (keep each letter’s first occurrence). Take the entire alphabet and remove any letters that are in the keyword.
If the number of ports modulo 4 is 0 or 1, place the alphabet at the end of the keyword. Otherwise, place the alphabet at the beginning of the keyword. This is the alphabet key.
Concatenate the encrypted word and the top screen on page 2 in that order. Convert this encoded string to binary by replacing each character with a binary code from the table on the right.
For each bit of the binary string, do the following:
- 1: Create an number node. If you have more than 1 number node, find the most recently created number node before this node that doesn't contain 2 characters and put in the number node you just created into that number node.
- 0: Put in the left most letter from the alphabet key inside the node that was created most recently that doesn't contain 2 characters. Remove that letter from the alphabet key.