Brute force code cracking question.
Just started reading a novel (Digital Fortress by Dan Brown) which is about NSA, the code cracking agency.
A character in the novel claims that brute force methods can always crack a code based on an encryption key. This claim does not seem close to being correct to me.
It seems to me that a key 100 bits long requires 2100 tries to be certain of finding the key, although you could be lucky and find it in ten tries. On average, it would take 250 tries.
A key several thousand bits long would take many life times of the universe if you could make millions of tries per nanosecond.
Are there any code cracking gurus here with an opinion?
Re: Brute force code cracking question.
Quote:
Originally posted by Guv
A character in the novel claims that brute force methods can always crack a code based on an encryption key. This claim does not seem close to being correct to me.
It seems to me that a key 100 bits long requires 2100 tries to be certain of finding the key, although you could be lucky and find it in ten tries. On average, it would take 250 tries.
A key several thousand bits long would take many life times of the universe if you could make millions of tries per nanosecond.
I think the author omitted "Given enough time..." from his book. Never the less this doesn't make it untrue that brute force will always yield a result. Several decades ago someone said (paraphrasing) "I cannot envisage a time when we will need to perform more than 40,000 calculations per hour". When quantum computers become viable in about 20 years we'll be cracking 8192 bit RSA as something to pass a boring lunch hour. So if the only limit to brute force effectiveness is time itself, then all we have to do to prove a theory is wait!
Brute force code cracking question
The author is wrong with enough bits it cant be cracked.