Link to home
Start Free TrialLog in
Avatar of Gssc1414
Gssc1414Flag for United States of America

asked on

What is the best way to go about using Cryptanalysis to decrypt a message?

I have a message that I need to decrypt (for learning purposes). We are given the Cyphertext and need to derive the plaintext and key used. I am pretty sure the encryption method is simply substitution of some letter, say "A" for "I", "B" for "U" etc. I am having a tough time getting far with the decryption. I have done a frequency count on the cypher and found that there are 3 letters that are used substantially more often then the others (13 and 12 times to nominal of about 4). I know this means that the plaintext letter is most likely one of the commonly used English letters "e t a o". After fooling around with the text trying to decrypt it after replacing these Letters with the real ones - I am not getting very far (I know - im a crappy crypanalyist). I am wondering if there are any tricks to the trade that someone might be able to fill me in on, or maybe some tools that can guess words based on a few known letters and a few unknown letters. Any suggestions are welcome.
Avatar of letharion
letharion
Flag of Sweden image

Hmm, I have a book on the subject at home I try to have a look at later. But until I do, if it's a simple substituion, are the spaces left intact? If they are, try to locate the most common words, such as "I", "and",  "a", "are" and other words that tend to repeat over a text. If you can locate such words, you can make pretty good guesses about which a few letters.

Btw, why do you think it's a simple substitution? How many different letters are there?
You could also just post the entire message. I won't just solve it for you (Both because I'm lazy and it wouldn't really be much learning on your part) but I might be able to give you more hints :)
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gssc1414

ASKER

Thanks for all the responses. I have been basically doing the methods that have been listed, but because this is my first time decoding a message, I haven't gotten very far. Currently I am pasting the encrypted message in word (all lower case), then based on frequency count I am replacing the lower case letters with upper case guesses of what letter should actually be there. I guess I am on the right track, just have to spend more time on it and see if i can't get it. Below is the encrypted text - please note I am NOT looking for answers, merely looking for a little guidance and maybe some suggestions as to a systematic approach to solving the problem.

Encypted text: Wrvl jrvspflyo dyl glzeq jdiilk psre fr slymryv vdeb elx mpejfzreo zejipkzeq fwl jreopvsfzre rm wrvlxryn mryvlyib ldfle gb fwl krq
Well, I can confirm that it's a simple substitution cipher, so you are on the good way ;)

Instead of using Word, consider using the second link I posted earlier ... It will save you a lot of time replacing characters, so you can concentrate on actually cracking the code.

We can work through this together if you want. What are the first letters you'd substitute based on the frequency analysis ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You're giving away an awful lot there, d-glitch. That would spoil the fun for me for sure, if it was me asking the question.
I'm not trying to spoil any one's fun.
But the techniques mentioned earlier (frequencies of single letters and two letter
combinations) are not the place to start for newpaper puzzle type cryptograms.

Small word substitutions are much more effective.

I have no idea if any of my guesses are correct.
Gssc1414,
It should be a fun course. At least your teacher is showing a sense of humor. d-glitch has given you a substantial start. Once you begin your substitutions, why don't you post where you are and where you're stuck and we can provide some hints about what you might do next, without telling what substitutions to make.
>> But the techniques mentioned earlier (frequencies of single letters and two letter combinations) are not the place to start for newpaper puzzle type cryptograms.

Frequency analysis can greatly help in making informed decisions on which small words to choose :) And a frequency analysis is always the best starting point, if only to find out if you're dealing with a substitution cipher or not.
Hey everyone,

Well that makes me feel good, because I was doing the method that d-glitch has presented. I was focusing on the small words. I did come to the conclusion that fwl was probably "THE" and that would force fr to be "TO". I basically made these substitutions, but then got stuck as nothing I seemed to do would make any sense. I am going to try out the tool that Infinity08 suggested - I will get back with you guys with the results...

Thanks again for all the help and suggestions (it's nice to see that what you were doing is actually suggested by experts - so im at least on the right track)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> I basically made these substitutions, but then got stuck as nothing I seemed to do would make any sense.

Once you have substituted a few letters, you can start looking for patterns.
At the same time, keep the frequency table in the back of your head. And let it help you in choosing the right substitutions.
if that doesn't produce satisfactory results, consider
fwl = AND
fr   = AT
Any bets on this being a University of Phoenix course? How many have the solution?
>> Any bets on this being a University of Phoenix course?

lol. Now that's a hint heh.
Well, I figured it out. I basically used all the methods listed above (most of which I was already doing) and finally got the right combination that enabled the decryption of the message.

Thanks for your help and suggestions.
Infinity08,

Nice links for the frequency analysis.  My kind of thing - thanks
Avatar of secretmachine
secretmachine

Hah, I recently had to decipher this. It was so frustrating until I made the connection between one particular repeating pattern. Geez... I think next time will go much more smoothly.