Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to find key to decrypt ciphertext by having the original plain text?

Tags:

encryption

aes

I have plaintext P and ciphertext C, is it possible to find K key, by which P was encrypted. AES is used to encrypt.

like image 898
Armen Avatar asked May 18 '11 12:05

Armen


2 Answers

This is called a known-plaintext attack.
Modern ciphers such as AES are not vulnerable to these attacks.

like image 103
SLaks Avatar answered Oct 20 '22 14:10

SLaks


Depends how you define "Possible". It is generally understood, for the moment, to be an impractical task. That said, storing plaintext values with their encrypted counterparts is never recommended. especially if you do this for many sets of plaintext/ciphertext pairs, you increase the amount of information available to the attacker and weaken the encryption.

like image 38
Tao Avatar answered Oct 20 '22 15:10

Tao