Modern encryption relies on it being computationally infeasible to break the cipher and decode a message without the key. As computational power increases, the ability to break ciphers grows and keys need to become larger.

There are three main asymmetric key algorithms in use:

With current technology, key sizes of 2048 bits for RSA and DSA, or 224 bits for ECC, are regarded as unbreakable.

Increase the key size to the recommended amount or larger. For RSA or DSA this is at least 2048 bits, for ECC this is at least 224 bits.

  • Wikipedia: Digital Signature Algorithm.
  • Wikipedia: RSA cryptosystem.
  • Wikipedia: Elliptic-curve cryptography.
  • Python cryptography module: .
  • NIST: Recommendation for Transitioning the Use of Cryptographic Algorithms and Key Lengths.