Symmetric encryption · 05 Weaknesses and attacks

Symmetric encryption: weaknesses and attacks

Brute force, reuse of keys and nonces, wrong modes, side channels and poor key management: how symmetric encryption is attacked.

Brute force
Effective only against short keys: 56-bit DES fell in 1998. Against 128-bit keys it is impractical.
Keystream reuse
In a stream cipher, encrypting two messages with the same keystream lets an attacker cancel it out with an XOR and learn about the texts.
Wrong modes
ECB reveals the structure of the data; predictable initialisation vectors and repeated nonces open other holes.
Known plaintext
Knowing parts of the message helps against weak ciphers; modern ones are designed to resist it.
Side channels
Execution times, power consumption and emissions can reveal the key if the implementation is not protected.
Key management
Keys written into code, stored in plain text or derived from weak passwords: the most common weak point.
Continue with
06 Use today

Symmetric encryption today

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

↑