## On the Subject of the Green Cipher

It ain’t easy being green. Nor is it easy being a cipher.

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 a 6 digit number.

On page 2, the top screen shows a 3 letter configuration, the middle screen shows a word.

### Step 1: Homophonic Cipher

Config the table below so that the lowest value in that row is underneath the letter that is shown on the top screen of page 2. Ex: AUL means that 01 is under A, 27 is under U, and 53 is under L.

The numbers on the middle and bottom screen of page 1 is an encrypted word using the table you made.

Treat the middle screen as the tens place of each number and the bottom screen as the ones place of each number.

For each number, find them in the table and use the column of the number to get the letter that is above the rows of numbers.

You should now have a decrypted keyword that will be used in step 3 so hang on to it.

#### Example

Middle Screen Numbers: 361037
Bottom Screen Numbers: 988192
Homophonic Key: AUL

ABCDEFGHIJKLMNOPQRSTUVWXYZ
0102030405060708091011121314151617181920212223242526
3334353637383940414243444546474849505152272829303132
6869707172737475767778535455565758596061626364656667

39 -> G
68 -> A
18 -> R
01 -> A
39 -> G
72 -> E
Decrypted Keyword: GARAGE

### Step 2: Ragbaby Cipher

For this, you’re going to need the encrypted word on the top screen, and the word on the middle screen on page 2.

Using the word from the middle screen, remove any duplicate letters from it, getting rid of all 2nd or more occurrences. Next, take the entire alphabet and remove all the letters that are shown in the key.

If the number of unlit indicators is even, put the alphabet at the end of the key.
Otherwise, place it in front of the key. This will be your Ragbaby key.

Starting with an offset of 1, follow the directions below for each letter:

• 1: Find the letter in the Ragbaby key.
• 2: Go to the left a X number of times where X is the offset.
• 3: Replace that letter with the letter you end up on.
• 4: Add 1 to the offset.

After that you should now have a new encrypted word.

#### Example

Encrypted Word: XSSAAE
Ragbaby Key: EXTNDABCFGHIJKLMOPQRSUVWYZ

X -> E
S -> Q
S -> P
A -> X
A -> E
E -> S
New Encrypted Word: EQPXES

### Step 3: Mechanical Cipher

Using the keyword you decrypted from step 1 and the encrypted word after doing step 2, follow the steps below.

Take the first letter from the keyword and use that as the row.

Find the first letter of the encrypted word in that row to get a column.

That column is the new decrypted letter for the word.

Do this for each letter of both words to get your decrypted word.

#### Example

Encrypted Word: EQPXES
Mechanical Keyword: GARAGE

G + E -> R
A + Q -> E
R + P -> T
A + X -> I
G + E -> R
E + S -> E
Decrypted Word: RETIRE

ABCDEFGHIJKLMNOPQRSTUVWXYZ
AUFHKQIPLXNZESGBVMCWJRDOTYA
BIWCZYMLKJODGFSQRNBTXHUEVAP
CWBSMEJTUCPFAHZOQLIKNYVGXRD
DGRINQVWOTYAJXBMHCFKLDUSZEP
EDLTVSUIKWCXRFJZANYHMQOGEPB
HBPHORAKNUETDZYQIMSFJGVWCXL
IANDSQWTGXKFPCOVBLMYEZHRJIU
JAQJPBUSGWNXZVDYLETCOFHRIMK
KBHFTDGERXJAMUNZVYKOSPILCWQ
LJHUKDMSNEBICZYWLXQFPORTAVG
MASNTZDBGWYILEORCQFXJPKHMVU
NRPCQABVLGWFENIKYMDUTSJXOZH
OYIXNVWQSUHFOMZDGKJPCTBELAR
PIMPCZLEGJARNTWSYFQDOUBKHVX
QJGKOXMUBAVRTFYCNPWQZESILHD
RSVHDBZNMKWJIEUYFXRQPLGCATO
STZXGOPNBWAIYRHQLVKJSCDUEFM
TDJQZYWTPKIXCVABFNUEOLHSGRM
UCJOEDYHBNIXZRTPWGALFKUSMVQ
VFEHLYOBGRXQKVZUIMJTNACDPSW
WMOGAPTHIZXRFKLYSVDBWUQNECJ