Chosen-Plaintext Attack

In this form of attack, the adversary is free to choose the plaintext which will be encrypted. From the known-plaintext-encrypted text pair, he then attempts to work out the key that has been used.

In a known-plaintext attack, only one arbitrary plaintext-encrypted text pair is known.

By contrast, for a ciphertext-only attack knowledge of the plaintext is not necessary.