On the Subject of Arithmetic Ciphers
Death to software patents!
This module contains 3 screens, a keyboard, 2 arrows, and a submit button that displays the current page you’re on.
Pressing the left or right arrow takes you to the previous or next page. There are 2 pages.
To disarm the module, decrypt a word using the following three steps. Once you have the decrypted word, type it in using the keyboard. When you start typing, the screens go blank and the bottom screen will show what you are typing.
To clear your input, click one of the arrows.
Once you are satisfied with your input, press the button labeled “SUB” to submit your answer.
Step 1: Encrypted Binary Retrieval
For this step, use the letters from the top screen on page 1. Convert this encoded string to binary by replacing each letter with a binary code from the table on the right.
This will be referred to as the binary stream. Bits are extracted and removed from it from left to right.
Step 2: Frequency Retrieval
Concatenate the letters on the middle and bottom screens on page 1 and all three screens on page 2 (ignore the number). Replace each letter with its position in the alphabet to obtain 27 numbers in the range 1–26. Label the first 26 with the letters A–Z and the last as “EOF”. These numbers are referred to as frequencies.
Also calculate the running total for each entry. Label A with 0, B with the frequency of A, C with the frequency of A+B, etc., until EOF with the sum of the frequencies of all letters A to Z.
Finally, you need a value called total which is the sum of all frequencies (or, equivalently, the running total of EOF plus its frequency). This value is provided on the last screen for confirmation.