Affine Cipher

Can you brute force this classical cipher?


Discuss The Problem

The following text was encrypted with the Affine cipher algorithm. The alphabet used was:

ABCDEFGHIJKLMNOPQRSTUVWXYZ ,.
The numeric value of each character is it's index in the alphabet. So 'A' is mapped to 0, 'B' to 1, etc, all the way up to '.' which is mapped to 28. The size of the alphabet was chosen to be prime to allow for more possible keys.

Cipher Text:


Submit the (lowercase hex) md5 hash of the plaintext. Note the plaintext contains no newline characters, even at the end of the file.

Test Vector

This ciphertext
RLZZC SCIZJB
Was encrypted with the same alphabet and the parameters a=2, b=3 (remember the decryption parameters are the inverses of the encryption parameters). The decrypted message is:
HELLO WORLD.
The md5 hash of this plaintext is
8ca106826bc593c20811b9c466ce9c77