Encryption is a transformation that takes an input of plaintext and a key, and generates ciphertext.