Game 19
We have a large block of binary data. Decode it to get an encrypted message:
010011100101011001000011010101000100011001000100010101100010000001001011010001100010000001001010010011000100010101011010010001010101001001001011010100100100101000100000010100100100010101010101001000000100101101000110010101010101001001010000001000000101101001001010001000000101001000100000010110000100011001000110010101010010000001010101010100100101000000100000010100100100010101010101001000000101001001001100010010110101100101000010010101100101000000100000010110100100101000100000010001110100001101010010010110100101010101010100010010110101011101011010010010100100110101010110010010010101000001011001010100100100100101010101Decode as binary to get:
NVCTFDV KF JLEZERKRJ REU KFURP ZJ R XFFU URP REU RLKYBVP ZJ GCRZUTKWZJMVIPYRIUThe uppercase alphabet is A=0 through Z=25. The retained ciphertext is a Caesar shift, the affine special case a=1, b=17: encryption is C=(P+17) mod 26, so decryption subtracts 17. The following complete decoder preserves spaces and can be run offline as python3 decode.py:
ciphertext = "NVCTFDV KF JLEZERKRJ REU KFURP ZJ R XFFU URP REU RLKYBVP ZJ GCRZUTKWZJMVIPYRIU"plaintext = "".join( chr((ord(char) - ord("A") - 17) % 26 + ord("A")) if "A" <= char <= "Z" else char for char in ciphertext)print(plaintext)The decoded message, with the key hidden in this display, is:
WELCOME TO SUNINATAS AND TODAY IS A GOOD DAY AND AUTHKEY IS **********************PLAIDCTFISVERYHARD