RSA · 07 Pitfalls to avoid

RSA: pitfalls to avoid

The most common mistakes developers and administrators make with RSA, from short keys to home-made implementations.

Mistakes made by developers and administrators

  • Implementing RSA yourself instead of using well-tested libraries.
  • Using RSA without padding or with the old PKCS#1 v1.5 encryption padding instead of OAEP.
  • Using outdated schemes for signatures instead of PSS, where possible.
  • Generating keys with non-cryptographic random generators or with little entropy, for example on freshly booted devices.
  • Using keys shorter than 2048 bits.
  • Reusing the same key pair for different purposes, such as encryption and signing.
  • Storing the private key unprotected, in plain text on disk or in a code repository.
Continue with
08 FAQ

RSA: frequently asked questions

Short answers to the most common doubts about RSA, keys, security and quantum computers.

↑