

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


mation. The purpose of this project is to discover how hard it is to crack even simple codes by brute force methods. The codes you are breaking in this project are greatly simplied, as they are all expressed in standard alphabet characters, the modulus we are using always corresponds to the number of characters, and no characters are ever repeated in the modulus scheme.
The messages in this problem are not grammatically correct, have no punctuation in most cases, are all lower case letters, and are chosen to give you a good chance at decoding. Each message, when decoded, starts with the phrase 'did you ' and they all contain well dened words (in English). I would suggest you, at rst, no try a purely computational process for decoding, but rather try to use some logic to determine what letters are likely, and, of course, use the fact that you know the rst 8 characters.
An acceptable answer for this project is not simply the decoded message. You MUST hand in any material you used to determine the message (such as other codes or hand work). Please write up your method clearly and concisely, and if you determined much of it by hand using simple logic, please write a small explanation of your thinking process.
(there is no '.' ). The alphabet used is out of order slightly. The rst ve characters are out of order, the rest are all in order. The message is turned from text into numbers using this dierent alphabet order, then encoded by
multiplying by a matrix B =
, converted to base 27 (again, because no period), then turned into
text using the reverse of the dierent alphabet order. The resulting encoded message is:
xjfklqrveifxdpzwnqusmdbgkafeo wrrnngqbnzpvsbccpa
You must decode the message using the fact that the rst part of the original message is did you. There is a le on the website, called CryptoBreakExample.m which walks you through two simple methods to accomplish this. One idea is that we loop through each combination of what the rst ve characters could be, and print out the result if the text did you happens to match. There are much better ways to do this, and feel free to attempt them if you would like.
assignment ('a'=0, 'b'=1, ..., ' '=26, and '.'=27). The message is encoded by reshaping the matrix into three rows (using extra padding with spaces if necessary), multiplying by a 3 × 3 encoding matrix, and taking the modulus in base 28. The resulting encoded message is:
i k.ghcbxmqcigwr pxhzssfwqdbddvqjctndvfaic hhnzgydtlbvyvrrvmmvhzbsyr epssio.mztpctha
Decoding this is generally straightforward, but the problem is that someone forgot to pass you the B matrix (the encoding matrix). We do know three facts though:
Find the original message.
characters (there is no '.' ). The alphabet used is out of order slightly. Each set of three characters is in some unknown order. For example, the rst three characters corresponding to 0 , 1 , and 2 may be b, c, and a instead of the normal order of a, b and c. To be more specic, the following is not the correct encoding scheme, but a possible one:
a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 0 4 3 5 8 7 6 11 10 9 12 13 14 16 17 15 18 20 19 21 23 22 24 25 26
The original message in encoded by a permutation similar to the example above, then is reshaped into a matrix with three rows (using extra padding with spaces if necessary). It is then multiplied by the following encoding matrix
B =
and the result is calculated in base 27. While the permuted alphabet encoding scheme used is not straightforward, you've caught a few breaks:
(so, this is the matrix after changing the original message by the permutation, forming into a matrix, multi- plying by B and modding everything by 27 ).
Determine the original message.
scrambled in a completely random order (the new alphabet is a random perturbation of the usual alphabet). For example, a,b and c may correspond to any number between 0 and 27 (with obviously, no numbers being repeated). After the message is changed by the random perturbation of the standard alphabet it is then is reshaped into a matrix with three rows (using extra padding with spaces if necessary). Next it is multiplied by the following encoding matrix
B =
and the result is calculated in base 28. The resulting message, using the perturbed alphabet, is
mmsfextmcrxvc cmv kxbsmerbv jbfptlsdsxhycjbdemb.o ubdeszhxhnpwcxzbzmuzslzhrgwt
Once again, you've caught a couple of breaks (not that it is gonna help much!):