## On the Subject of the Indigo Cipher

Roses are red. Violets are blue. Indigo cipher is here, and you are doomed.

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 screen shows an encrypted logic key, the bottom screen shows a word.

On page 2, the top and middle screen shows a 6 digit binary number, the bottom screen shows an logic operation.

### Step 1: Fractionated Morse Cipher

Take the word from the bottom screen on page 1 and convert it to a letter key using the rules below:

• Remove any duplicate letters in the word.
• Take the entire alphabet, and remove the letters shown in the word.
• If the number of ports is odd, place the alphabet at the end of the word.
• Otherwise, place the alphabet in front of the word.

Now that you have the letter key, place the following underneath the key:

.........---------xxxxxxxx
...---xxx...---xxx...---xx
.-x.-x.-x.-x.-x.-x.-x.-x.-

Take the encrypted logic key from the middle screen on page 1, and for each letter, convert it to the symbols according to your key you made.

Now read it as morse, top to bottom, left to right, treating the Xs as spaces between the letters.

#### Morse Code Table

After all of that, you should have a 6 letter logic key, that doesn't translate to a word unfortunately. This will be used for the logic cipher in step 3.

#### Example

Encrypted Logic Key: BIFXDPSHMK
Key: BCDFGHIJKMNOPQRSUVXYZWALET

BCDFGHIJKMNOPQRSUVXYZWALET
.........---------xxxxxxxx
...---xxx...---xxx...---xx
.-x.-x.-x.-x.-x.-x.-x.-x.-
BIFXDPSHMK
...x.--.-.
.x-..-x-.x
....x..x.x

. . . . x . . - . x . . . . x - - . - x . . - x - . . . x x => HFHQUB

### Step 2: Condi Cipher

For this, you will need the same letter key you made in step 1 and the 6 letter encrypted word from the top screen on page 1.

Place the following 2 rows underneath the letter key (you don't need the dots, dashes, and Xs anymore):

00000000011111111112222222
12345678901234567890123456

Treat the top row of the numbers as the tens place and the bottom row as the ones place.

For your starting offset, use the sum of the serial number digits.

For each letter of the encrypted word from the top screen on page 1, do the following steps:

• Find the letter in the letter key.
• Move to the left a number of times equal to the current offset.
• The new letter you end up on becomes the new encrypted letter.
• The same position of that letter, using the number underneath, becomes your new offset.

Now you should have a new encrypted word and ready to move on to the final step of this cipher.

#### Example

Encrypted Word: UXKQAT
Key: BCDFGHIJKMNOPQRSUVXYZWALET
Starting Offset = 25

BCDFGHIJKMNOPQRSUVXYZWALET
00000000011111111112222222
12345678901234567890123456

U - 25 => V, 18
X - 18 => B, 01
K - 01 => J, 08
Q - 08 => H, 06
A - 06 => U, 17
T - 17 => K, 09
New Encrypted Word: VBJHUK

### Step 3: Logic Cipher

Now that you have your logic key from step 1 and the new encrypted word from step 2, it's time to begin the final step.

The first part of this step is to figure out which logic gate you'll be using. Turn the numbers on the bottom screen on page 2 into 6 digit binary numbers. Then using the left number as the left bits, the middle number as the right bits, and the third number as the resulting bits, find out which gate it is by using the following table:

LBRBANDORXORNANDNORXNOR-><-
0000011111
0101110010
1001110001
1111000111

After figuring out which gate the cipher is using, then using the encrypted word, the logic key, and the 2 6 digit binaries on the top and middle screen on page 2, do the following steps:

• 1: Turn the first letter of the encrypted word into its alphanumeric position, minus 1 (A = 0, B = 1 ... Z = 25).
• 2: Then turn the number into a 5 digit binary.
• 3: If the top screen binary bit at the same position as that letter is a 1, invert the bits.
• 4: Do the same 3 steps above for the logic key, and use the binary on the middle screen instead of the top screen.
• 5: For each of the 5 bits of the 2 binaries, apply the logic gate so it turns into the resulting bit. Treat the first binary you got as the left bits, and the second binary you got as the right bits.
• 6: Turn the resulting binary back into a number and into it's corresponding letter (0 = A, 1 = B ... 25 = Z).
• 7: Do this for each letter of the encrypted word and logic key to get your decrypted word.

Encrypted Word: VBJHUK
Logic Key: HFHQUB
Top Binary: 11011
Middle Binary: 000101
Logic Gate: XNOR

V, H => 21, 07 => 10101, 00111 + 1, 0 => 01010 XNOR 00111 => 10010 => 18 => S

B, F => 01, 05 => 00001, 00101 + 1, 0 => 11110 XNOR 00101 => 00100 => 04 => E

J, H => 09, 07 => 01001, 00111 + 0, 0 => 01001 XNOR 00111 => 10001 => 17 => R

H, Q => 07, 16 => 00111, 10000 + 1, 1 => 11000 XNOR 01111 => 01000 => 08 => I

U, U => 20, 20 => 10100, 10100 + 1, 0 => 01011 XNOR 10100 => 00000 => 00 => A

K, B => 10, 01 => 01010, 00001 + 0, 1 => 01010 XNOR 11110 => 01011 => 11 => L

If you don't know how to convert decimal to binary and vice versa, there's a binary table on the next 2 pages that shows both 5 bit and 6 bit binaries for numbers 0 - 63.

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.

Number6 Bits5 Bits
000000000000
100000100001
200001000010
300001100011
400010000100
500010100101
600011000110
700011100111
800100001000
900100101001
1000101001010
1100101101011
1200110001100
1300110101101
1400111001110
1500111101111
1601000010000
1701000110001
1801001010010
1901001110011
2001010010100
2101010110101
2201011010110
2301011110111
2401100011000
2501100111001
2601101011010
2701101111011
2801110011100
2901110111101
3001111011110
3101111111111
Number6 Bits
32100000
33100001
34100010
35100011
36100100
37100101
38100110
39100111
40101000
41101001
42101010
43101011
44101100
45101101
46101110
47101111
48110000
49110001
50110010
51110011
52110100
53110101
54110110
55110111
56111000
57111001
58111010
59111011
60111100
61111101
62111110
63111111