A known-plaintext attack exploits known pairs of plaintext and corresponding ciphertext to deduce encryption keys or methods.