Topics in this domain

Symmetric Encryption

Cryptography · 2 min read

One key for both

A house key locks and unlocks the same door. Give a copy to a friend and they can get in too. Lose a copy, and anyone who finds it can get in.

In symmetric (secret-key) encryption, the same key encrypts and decrypts. Anyone with the key can read the data, so the key must be kept secret and shared only with the right people.

Plaintext encrypted with key K, sent as ciphertext, decrypted with the same key K.

Strengths and weaknesses

Symmetric strengths: fast, strong, built into hardware. Weaknesses: key sharing, scale, no non-repudiation.

Strengths

  • Fast: hundreds to thousands of times faster than asymmetric encryption, so it’s used for bulk data.
  • Strong: with a modern algorithm and a decent key length, brute force isn’t practical.
  • Built into hardware: many processors and drives have AES support built in.

Weaknesses

  • Key distribution: how do two parties agree a secret key without anyone intercepting it? This is the main disadvantage.
  • Scalability: every pair of people needs its own key. For n people that’s n(n-1)/2 keys, so 100 people need 4,950.
  • No non-repudiation: both parties hold the same key, so either could have created a message.

The key-sharing problem, solved

In practice, symmetric keys are shared using asymmetric cryptography: a symmetric session key is exchanged with public-key methods (as in TLS), or “wrapped” with the recipient’s public key. You get the speed of symmetric and the safe delivery of asymmetric.

Example. A company sends encrypted files to 30 partners, using the same AES key for all of them, emailed in the clear. Anyone who intercepts that email, or any one partner, can read every partner’s files. The auditor recommends a unique key per partner, exchanged with public-key methods.

Algorithms

DES and RC4 broken, 3DES retiring, AES and ChaCha20 current.
AlgorithmNotes
DES56-bit key; obsolete and quickly broken
3DESDES applied three times; slow and being retired
AESThe current standard (Rijndael); 128-, 192- or 256-bit keys
ChaCha20Fast stream cipher, common on mobile devices
Blowfish, Twofish, IDEAOlder alternatives
RC4Broken stream cipher; don’t use

Block ciphers (AES) encrypt fixed-size blocks; stream ciphers (ChaCha20) encrypt bit by bit. Block ciphers run in a mode of operation: ECB is insecure because identical blocks produce identical ciphertext, leaking patterns; GCM gives encryption and integrity together.

Where you’ll find it

  • full-disk and file encryption
  • database and backup encryption
  • VPN and TLS traffic (after the key exchange)
  • Wi-Fi encryption (WPA2/WPA3)

How the exam asks about it

If the question asks…The answer is usually…
Main disadvantage of symmetric encryptionSecure key distribution
Number of keys for n usersn(n-1)/2
Main advantage of symmetric over asymmetricSpeed / efficiency for large data
Current standard symmetric algorithmAES
Can symmetric encryption provide non-repudiationNo

In short

  • Symmetric encryption uses the same secret key to encrypt and decrypt.
  • It's fast and efficient, so it's used for bulk data: disks, databases, files, network sessions.
  • The main problem is key distribution: both parties need the key, and it must be shared securely.
  • Scalability: n users communicating privately need n(n-1)/2 keys.
  • Symmetric encryption alone doesn't provide non-repudiation, because both parties hold the same key.
  • AES is the current standard; DES is obsolete and 3DES is being retired.

Exam traps

  • Biggest disadvantage of symmetric encryption: securely distributing the key.
  • Symmetric can't prove which party sent a message, so no non-repudiation.
  • ECB mode leaks patterns; use modes such as GCM or CBC with proper initialisation vectors.
  • Key length matters: 56-bit DES can be brute-forced quickly.

Slides

Click the slide and use the arrow keys. F toggles full screen.

CISA · Domain 5 · Cryptography

Symmetric Encryption

One key to lock and unlock: how symmetric encryption works, why it's fast, why sharing the key is the hard part, the algorithms to use and avoid, and where you'll find it.

1 / 9