When Alice sends a private message through an untrusted messenger, encryption transforms the plaintext into ciphertext: encrypted content that looks random to observers without the secret key. section 1.2 section 4.1
A symmetric-encryption exchange follows these steps:
- Start with plaintext, such as text, an image, or a video represented as bits. section 4.1
- Encrypt the plaintext with a secret key to produce ciphertext. section 1.2 section 4.1
- Transmit the ciphertext; an observer should see random-looking data rather than the message. section 4.1
- Decrypt the ciphertext with the same secret key to recover the original plaintext. section 1.2
Alice sends “hello”
Alice encrypts the plaintext “hello” with a shared key and sends Bob the resulting ciphertext. Bob uses that same key to decrypt it and recover “hello”; the messenger sees only noisy data. section 4.1
Figure 4.2 A cipher with a key can be seen as a permutation: it maps all the possible plaintexts to all the possible ciphertexts.
View ciphertext as one element of a reversible key-dependent mapping between plaintexts and ciphertexts. section 4.2.2




