## On the Subject of Binary Cipher

!findclaim cipher lmao

### Step 1: Axial Symmetry Transposition

In this step, you are going to create five 4 by 4 grids.

#### Grid #1:

Take the battery count modulo 2. If this value is 0, fill rows 1 and 2 with 10101010, otherwise 01010101.

Take the port count modulo 2. If this value is 0, fill rows 3 and 4 with 10101010, otherwise 01010101.

#### Grid #2:

Take the 16-digit binary number shown on the bottom screen of Page 2, fill the 4 by 4 grid with these digits, then horizontally flip the grid.

#### Grid #3:

Take each cell in Grids #1 and #2 in reading order. If they are the same, this position in Grid #3 is a 1, otherwise it is a 0.

#### Grid #4:

Take the 16-digit binary number shown on the top screen of Page 1, fill the 4 by 4 grid with these digits, then horizontally flip the grid.

#### Grid #5:

Take each cell in Grids #3 and #4 in reading order. If they are the same, this position in Grid #5 is a 1, otherwise it is a 0.

#### Example:

Battery count: 2
Port count: 5
Page 1, top screen: 1100110100001001
Page 2, bottom screen: 0001101010011001

 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1
 1 0 0 0 0 1 0 1 1 0 0 1 1 0 0 1
 1 1 0 1 0 0 0 0 0 0 1 1 0 0 1 1
 0 0 1 1 1 0 1 1 0 0 0 0 1 0 0 1
 0 0 0 1 0 1 0 0 1 1 0 0 0 1 0 1

### Step 2: Alphabet Transposition

Take the alphabet, remove all occurrences of the keyword within it, remove the single letter found at the top screen of Page 2, then note down the 6th letter of this string.

Based on the single letter found at the top screen of Page 2 and the 6th letter of the string, determine which grid of Xs below to use.

If the 6th letter is A B C D E F G H I J K L Z, use these tables:

 X - X X X X - - - - - - - - X -
 X X X - X - - - X - - - X - - -
 X - - X X - - X - X - - - - X -

If the 6th letter is N O P Q R S T U V W X Y M, use these tables:

 - - - - - - X - X - X X X X - -
 X - - - X - - - X X X - X - - -
 - X - - - - X - X - - X X - - X

Take the digits in the positions of the Xs in reading reading order from Grid #5 to get a 6-digit binary number, known as the retrieved binary.

#### Example:

Page 2, top screen letter: B
Keyword: SCRAWL
Key: DEFGHIJKMNOPQTUVXYZ
Position 6 is I. The used table is B.

 X X X - X - - - X - - - X - - -
 0 0 0 1 0 1 0 0 1 1 0 0 0 1 0 1

Retrieved binary: 000010

### Step 3: ASCII Translation

Take the retrieved binary number from the previous step, and remove the digit found at the position of batteries, modulo 6, plus 1. This will get you a 5-digit binary number found in the table below.

Submit the letter associated with the found binary.

 A H O V 00001 01000 01111 10110 00010 01001 10000 10111 00011 01010 10001 11000 00100 01011 10010 11001 00101 01100 10011 11010 00110 01101 10100 00111 01110 10101

Retrieved binary: 000010
Battery count: 2
Retrieved binary, after removing digit 3: 00010