4
$\begingroup$

Given an encrypted file, the original unencrypted (cleartext) file, and knowledge of which AES encryption algorithm was used, is it possible to determine the key that was used to encrypt the data in a reasonable period of time?

I am not looking for details on how AES works, just a simple answer.

$\endgroup$
3
  • $\begingroup$ This is a 2-year old question with an accepted answer. I've moved long past this and have no idea why it's being revived, but thank you @IlmariKaronen $\endgroup$
    – andrewgu
    Commented Dec 7, 2018 at 22:28
  • 1
    $\begingroup$ There was a (rather poor) new answer that bumped it to the front page. That answer has since been deleted. But since I noticed that your question is rather similar to a bunch of others here, I figured linking them would be useful. Arguably, some of those questions might even qualify as duplicates, but since they all have decent answers already, closing or merging them would be a lot of work for little if any gain. $\endgroup$ Commented Dec 7, 2018 at 22:38

2 Answers 2

6
$\begingroup$

The simple answer is no, known plaintext attacks should not be possible on an AES-encrypted file, assuming that AES is applied correctly. No information about the encrypted file or key should be leaked even if the adversary can guesss the contents of "the original unencrypted (cleartext) file".

Beware that any mistake into a protocol specification or implementation may negate the security of AES - and this could include the security of the key used. Point in case: some "AES encrypted" USB devices stored the key next to the ciphertext, in case somebody forgot the password.

$\endgroup$
2
  • $\begingroup$ Got it. So all AES variants are resistant to known and chosen plaintext attacks? $\endgroup$
    – andrewgu
    Commented Jul 18, 2015 at 0:14
  • 5
    $\begingroup$ As far as is publicly known. $\;$ $\endgroup$
    – user991
    Commented Jul 18, 2015 at 1:01
0
$\begingroup$

No. That would amount to cracking AES, which is not feasible.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.