Known-Plaintext Attack

This form of attack is an attempt to discover the key with which a document has been encrypted when one already knows the plaintext and the encrypted text. In a chosen-plaintext attack, any number of plaintext-encrypted text pairs can be generated.

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