On the Subject of the 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: Flapjack -> 47185236

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 deciphered word, this will be used as a keyword for the next step.

Example

FLAPJACK
47185236
...---XX
.-X.-X.-

4 1 7 4 3 1 7 8 | . . . x . - . . x . . x . - - . | S L I P




Step 2: Trifid Cipher

First thing you need to do is create a key. To do so, take the keyword you deciphered 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 from the top screen of page 1, turn each letter into a 3 digit number using the key you made above. Split the numbers into rows so that each row contains 6 numbers.

Read the numbers top to bottom, left to right 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 forms your new enciphered word.

Example

SLIPABCDEFGHJKMNOQRTUVWXYZ
11111111122222222233333333
11122233311122233311122233
12312312312312312312312312

TUSVZM -> 312 313 111 321 332 233

312313
111321
332233

313 113 212 332 123 313 -> UIGZBU




Step 3: Hill Cipher

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

First, you need to calculate the inverse number, N, of the equation. The equation looks like this: N((AD - BC) % 26) % 26 = 1

Once you figure out what N is, then arrange the 4 numbers like so:

D-B
-CA

Multiply each number by N and modulo by 26 (Add/Subtract 26 until it's a number between 0 - 25).

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 decrypted word.

Example

9 10 18 13 -> 13 -10 -18 9

N((9 * 13) - (10 * 18)) % 26 = 1 => N(-63) % 26 = 1 => N(15) % 26 = 1 => 7(15) % 26 = 1

91-70
-12663
138
411

UI -> 21 9
GZ -> 7 0
BU -> 2 21
(13 * 21) + (8 * 9) % 26 = 7 => G
(4 * 21) + (11 * 9) % 26 = 1 => A
(13 * 7) + (8 * 0) % 26 = 13 => M
(4 * 7) + (11 * 0) % 26 = 2 => B
(13 * 2) + (8 * 21) % 26 = 13 => L
(4 * 2) + (11 * 21) % 26 = 2 => E

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.