Symmetric encryption · 06 Use today

Symmetric encryption today

Where symmetric encryption is used every day and which algorithms are recommended: AES-GCM, ChaCha20-Poly1305, disk encryption.

Web
HTTPS connections encrypt data with AES-GCM or ChaCha20-Poly1305, after agreeing the key with public-key cryptography.
Disks and phones
Data at rest are encrypted with AES, often in a mode designed for disks.
VPNs
Encrypted tunnels use fast symmetric algorithms to protect all traffic.
Messaging
End-to-end encrypted apps use symmetric keys that change continuously.
Archives
Compressed archive formats and password managers encrypt content with 256-bit AES.

Current recommendations

  • Use authenticated encryption: AES-GCM or ChaCha20-Poly1305.
  • Use keys of at least 128 bits, preferably 256 for data to be protected long term.
  • Never reuse the same nonce with the same key.
  • Derive keys from passwords with slow, salted functions.
  • Rely on well-tested libraries, not home-made implementations.
Continue with
07 Try it yourself

Symmetric encryption: try it yourself

Exercises on XOR, counting keys and brute force, with solutions.

↑