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