Cryptography works by the use of ciphers, which is a pair of functions to encrypt and to decrypt. Unencrypted messages are called plaintexts, . Encrypted messages are called ciphertexts, .

However, ciphers are well-known bits of mathematics, we need to instead parameterise the cipher by a secret key . And design it to twiddle bits in ways that depend on .

This only works if is kept secret.