liveBook · Manning

Symmetric key encryption

As explained in Real-World Cryptography

Symmetric encryption is an encryption technique in which the same secret key, or equivalent shared secret, is used for encryption and decryption.

Symmetric-key encryption hides a message using one secret key. The sender transforms plaintext into ciphertext that looks like random noise; the recipient uses the same key to recover the plaintext. The shared secret must remain secret. section 1.2 section 4.1

Alice, Bob, and the nosy messenger

Alice wants to send gossip to Bob through dangerous territory without the messenger learning its contents. She encrypts the letter with their shared key, sends the ciphertext, and Bob decrypts it with that same key. The messenger can carry the strange-looking data but cannot read the original message. section 1.2

Keep these distinctions and cautions in view:

  • Treat symmetric encryption as a cryptographic primitive: AES is a specific symmetric encryption algorithm, while symmetric encryption names the broader technique. section 1.9
  • Distinguish it from asymmetric cryptography, which gives participants different views of the keys rather than one shared secret. section 1.5
  • Use authenticated encryption rather than encryption alone for secure applications, because unauthenticated ciphertexts can be tampered with. section 4.7
  • Plan how participants obtain the same unpredictable key; establishing shared secrets is often a major practical challenge. section 4.1

How Real-World Cryptography covers it

How deep it goes
Explains plaintext, ciphertext, encryption, decryption, shared keys, key exchange, and the limits of unauthenticated encryption.
Examples
Uses Alice and Bob’s letter exchange, ENCRYPT and DECRYPT functions, and an AES example encrypting “hello.”
What it assumes
Starts from ordinary message delivery and introduces cryptographic primitives, plaintext, ciphertext, keys, and shared secrets from zero.
What you can do after
Evaluate when shared-key encryption provides confidentiality and recognize why secure applications require authentication.
How it connects
Connects symmetric encryption to cryptographic primitives, AES, asymmetric cryptography, confidentiality, authentication, and authenticated encryption.

Also explained in

Compare how 6 books explain symmetric key encryption →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.