On the Subject of The Inverted Yellow Cipher

"They call me mellow yellow" - said no cipher ever.

On the module, you will see 3 screens, a keyboard, 2 arrows, 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 and bottom screen shows an encrypted number.

On page 2, the top screen shows another encrypted number, the middle screen shows an eight letter word, the bottom screen shows 4 numbers separated by dashes.

Follow the mechanics down below to decrypt your word:

Step 1: Morbit Cipher

First thing we need to do is to decipher the 3 encrypted numbers shown on the middle and bottom screens on page 1 and the top screen on page 2. Catenate the 3 screens into one string of numbers.

Next take the word on the middle screen on page 2 and write numbers 1-8 under the word in such a way that the accending numbers are going in alphabetical order. If there's a tie between letters, then accend in reading order. Ex: OPTIMISM -> 56813274

Then write this string underneath the 8 number key:

...---xx
.-x.-x.-

Now what you should have is a key that shows each number that translates into the characters below them.

Take the entire encrypted number and use the key to translate to dots, dashes, and Xs. Read it as morse code treating the Xs as spaces between letters.

Morse Code Table

You should now have a decrypted word, this will be used as a keyword for step 3.

Example

FOUNTAIN
26847135
...---xx
.-x.-x.-

4 4 5 7 5 1 8 | - . - . x - - - x - - x . x | C O M E

Step 2: Hill Cipher

For this cipher, you will need the encrypted word from the top screen of page 1 and the 4 numbers on the bottom screen of page 2. The numbers are ordered like this: A-B-C-D

Fortunately, the letters have been multiplied by the inverse of the 4 numbers. All you need to do first is to arrange the numbers like so:

AB
CD

Split the encrypted word into letter pairs. For each pair do the following:

  • Turn both letters into alphabetic positions.
  • Take the 1st number and multiply it by the top left number.
  • Multiply the 2nd number by the top right number.
  • Sum the 2 numbers together and modulo by 26 and turn the number back into a letter to get the first letter (Z = 0).
  • Use the 1st original number (the number before you multiplied it) and multiply it by the bottom left number.
  • Use the 2nd original number (the number before you multiplied it) and multiply it by the bottom right number.
  • Sum the 2 numbers together and modulo by 26 and turn the number back into a letter to get the second letter (Z = 0).

The resulting letters forms your new encrypted word.

Example

116
1721

LI -> 12 9
RQ -> 18 17
HC -> 8 3
(1 * 12) + (16 * 9) % 26 = 0 => Z
(17 * 12) + (21 * 9) % 26 = 3 => C
(1 * 18) + (16 * 17) % 26 = 4 => D
(17 * 18) + (21 * 17) % 26 = 13 => M
(1 * 8) + (16 * 3) % 26 = 4 => D
(17 * 8) + (21 * 3) % 26 = 17 => Q
New Encrypted Word: ZCDMDQ

Step 3: Trifid Cipher

First thing you need to do is create a key. To do so, take the keyword you decrypted from step 1 and remove any duplicate letters. Take the entire alphabet and remove any letters that is shown in the keyword.

If the number of batteries is odd, place the alphabet at the end of the keyword. Otherwise, place the alphabet at the beginning of the keyword.

Finally place these rows of numbers underneath your key:

11111111122222222233333333
11122233311122233311122233
12312312312312312312312312

With the encrypted word you got from step 2, turn each letter into a 3 digit number using the key you made above. Write each 3 digit number top to bottom, left to right, creating 3 rows of 6 digit numbers.

Read the numbers left to right, top to bottom to get a new sequence of numbers. Then take each 3 digit number and translate it back into a letter using the key you made.

The resulting letters will form into a decrypted word.

Example

COMEABDFGHIJKLNPQRSTUVWXYZ
11111111122222222233333333
11122233311122233311122233
12312312312312312312312312

ZCDMDQ -> 332 111 131 113 131 232

311112
313133
211312

311 112 313 133 211 312 -> SOUGHT

Once you finally have your decrypted word, you can submit it. Once you start typing, all the screens will go black and the bottom screen will show what you are typing.

To clear it, just click one of the arrows. This goes to one of the pages and clears any input you put in. It will not let you go over 6 letters on input.

Once you are satisfied with your input, press the button labeled "SUB" to submit your answer. On a strike, the module will go back to the first page of the module, but it does not regenerate.