known-plaintext attack

An attack on a cryptographic algorithm where the attacker has access to both the plaintext and its corresponding ciphertext, aiming to discover the encryption key.