AES · 07 Pitfalls to avoid

AES: pitfalls to avoid

The most common mistakes made by those who use AES in their own programs: wrong modes, weak keys, repeated vectors, lack of authentication.

Implementation and configuration mistakes

  • Using ECB mode for real data.
  • Reusing the same nonce with the same key in GCM or CTR.
  • Using predictable initialisation vectors in CBC.
  • Encrypting without authenticating: without an integrity check, encrypted data can be manipulated.
  • Deriving the key directly from a password without a slow derivation function.
  • Writing the key into source code or configuration files.
  • Implementing AES yourself instead of using well-tested libraries.
Continue with
08 FAQ

AES: frequently asked questions

Short answers to the most common doubts about AES, key length, security and quantum computers.

↑