On the Subject of Encrypted Morse
Oh nice, a Morse module! Wait, what does HNWLIREAKHI mean?
- This module contains a Morse light that transmits one of two things: The encrypted message (orange light) or the key (blue light). The defuser can choose which of these to receive using the knob next to the Morse light.
- There is also a binary display that shows a sequence of 42 binary digits (sequence A).
- The defuser may at any time press the small reset button in the middle of the module to restart the transmission from the beginning, as well as erase all inputted symbols.
- The wires leading to the Morse light may also be pressed to disable/enable it.
Step 1: Generating sequence B
For every character of the serial number, generate a 7-digit binary number using the following rules, then concatenate them into a 42-digit binary string. That is sequence B.
- If the character is a digit, use its binary representation, extended to 7 digits. Example: 2 = 0000010 and 5 = 0000101.
- If the character is a vowel, use 1011001.
- Otherwise, if the character is positioned in the alphabet before the letter O, use 1100010.
- Otherwise, use 1000100.
If the total number of batteries on the bomb equals the total number of ports, reverse the first half of sequence B.
Step 2: Binary decryption
Treat the received Morse message as a continuous sequence of Morse symbols
(. or -), omitting any spaces between letters.
For every symbol in that sequence, let A be the binary digit from sequence A at the same position. B is the corresponding digit from sequence B.
Use that information with the following table to decrypt the symbol. "Space" refers to a space between Morse letters.