Jul 21

Cryptography Question

I have a question about cryptography. I’m posting it here in the hopes that someone will know the answer. This isn’t a technical question, just a general theory, “I wonder how that works”-type question.

How does a cryptologist know that he has decoded something? If he’s trying to brute force an encrypted message, he has to try umpteen different keys. So how does he know when he’s got the right key and the message is decrypted?

For example, a terrorist has encoded a message about when a bomb is going to go off. Fred the intrepid cryptologist has to decode the message. So he starts brute-forcing it. Now, correct me if I’m wrong, but every key Fred tries will produce something — the wrong key will result in gibberish, the correct key will result in a coherent message. But if Fred is trying keys at the rate of several million a second (which he would have to do to brute force even mild encryption), he obviously can’t review the results of every attempt.

So how does Fred know when he’s found the right key and can stop trying? Does he have to review every result of an encryption attempt to see if it makes sense? If you know the answer, post it here. Thanks.


Comments

by Dave,   July 21, 2003 11:51 PM  

I don't know for sure, but perhaps it reviews the results on the fly and flags coherent patterns in those results, based on comparisons to known words. Just a guess.


by Deane,   August 15, 2003 5:26 PM  

Dave, you got it right. Bruce Schneier, author of the seminal book "Applied Cryptography" and principal at CounterPane Secruity sent me an email refering me to this:

http://www.counterpane.com/crypto-gram-9812.html#plaintext

A quote:

"For example, RC4 encrypts data in bytes. Imagine a single ASCII letter as plaintext. There are 26 possible plaintexts out of 256 possible decryptions. Any random key, when used to decrypt the ciphertext, has a 26/256 chance of producing a valid plaintext. The analyst has no way to tell the wrong plaintext from the correct plaintext.

Now imagine a 1K e-mail message. The analyst tries random keys, and eventually a plaintext emerges that looks like an e-mail message: words, phrases, sentences, grammar. The odds are infinitesimal that this is not the correct plaintext."



Add Comment


Want to advertise on this site? Contact FM.
Web Hosting Web hosting, dedicated servers and Web design services
Laser Toner Cartridges UK laser toner, toner cartridges, hp toner, lexmark toner, samsung toner, canon, toner, epson toner, oki toner, kyocera toner, xerox toner, remanufactured toner, compatible toner
Direct TV Deals Free 4 room direct tv deals. no equipment to buy. free fast professional direct tv installation. this is the best direct tv deal available anywhere.
SEO Article Learn from the experts with our SEO article.
rope light Shopping with birddog distributing, inc., gives you access to the lowest prices, the best customer service and the quickest delivery times possible.
Laptop AC Adapter We offer genuine factory direct replacement AC adapters.
Direct TV Best satellite TV deals.
Direct TV Deals Direct TV programming deals are varied and include packages containing from 50 channels up to over 250 channels.
8mm film to DVD Retain family memories with the only frame by frame digital restoration service in the United States for your 8mm film to DVD today
Rubber Stamp Shop for custom self-inking stamps, hand stamps, address stamps, label stamps, check endorsement stamps, check deposit stamps, date stamps, pre inks, pocket stamps, ink and much more!