Is there a way to decrypt a AES cipher Text which was encrypted twice with some key, when having a part of this key? (the last 3 bytes of the key are missing)
|
|
As an above comment said, you have $2^{24}$ different combinations to test as the key. However, if you don't have anything to verify with (i.e. the plaintext is still random data), no. |
||||
|
|
|
To expand on the comments:
The fact that it's been encrypted twice doesn't change "nothing," you'd have to decrypt it twice, but that's a negligible factor here. Assuming it takes 1000 FLOPs per try, and a household computer has a speed of 100 gigaFLOPs; you'd be able to try all 16 million combinations in $2^{24} · 1000/(100 · 10^9)) = 0.16$ seconds. $0.16$ seconds is "well within range of brute force." The numbers might be off a bit, but they'd have to be off by orders of magnitude for this to cease to be feasible. The main problem here is to know if your guess is correct. If just AES was used and you don't have the original plaintext, you'd have to guess if the file is correct. If this is part of an archive with a pre-defined format, you could check and see if the headers look realistic.
What Stephen means is AES already has a scheduled number of rounds that are applied. The number of rounds varies by key size: it's 10, 12 and 14 rounds for a 128-bit, 192-bit and 256-bit keys, respectively. |
|||||||
|