
Asymmetric encryption explained
What is public-key cryptography?
Public-key cryptography, also known as asymmetric cryptography, uses two mathematically linked keys to decode and encode data: a public key that can be shared openly, and a private key that is kept secret. Data encrypted with the public key can only be decrypted with the matching private key. This allows two parties to communicate securely without ever having to share a secret key in advance.
Almost every secure connection on the internet, from HTTPS websites to encrypted email to digital signatures, relies on asymmetric encryption. It solves a problem that older, symmetric encryption methods cannot: how do two parties who have never met agree on a shared secret over an insecure network?
Public-key cryptography is also referred to as asymmetric cryptography, and the two terms are used interchangeably across the industry.
How asymmetric encryption works
Every user or system generates a mathematically linked key pair: a public key and a private key. What one key encrypts, only the other key in the pair can decrypt.
Knowing the public key doesn't help you figure out the private key. The public key is mathematically derived from the private key, but that process only works in one direction: reversing it, working backward from the public key to the private key, would take an unimaginable amount of computing power, even for the world's fastest classical computers.
Use cases for asymmetric encryption
Asymmetric cryptography is used to securely exchange (symmetric) keys, enabling secure data encryption. A common key exchange method is Diffie-Hellman. Other important use cases include user and data authentication: public key cryptography enables the creation of digital certificates, which can only be used by someone possessing the corresponding private key, while anyone can verify that the certificate was issued by a trusted authority.
Where this shows up in everyday systems:
- HTTPS and secure browsing: Every padlock icon in a browser relies on asymmetric cryptography.
- Genuine identities: Digitally signed data on passports and identity documents confirm the authenticity of the stored information.
- Encrypted messaging and email: End-to-end encrypted apps and secure email protocols protect message content.
- VPNs and secure remote access: Keys are exchanged at connection setup, then symmetric encryption takes over.
Limitations of asymmetric encryption
Asymmetric encryption is slower and less efficient with large data volumes, so it is generally not used for bulk data encryption. Symmetric cryptography is preferred for that purpose, which is why most systems combine the two.
Common asymmetric encryption schemes
Two algorithm schemes are widely used in asymmetric encryption today. They rely on mathematical problems that are easy to compute in one direction but practically impossible to reverse without the private key.
RSA (Rivest-Shamir-Adleman)
RSA, introduced in 1977, is based on the difficulty of factoring the product of two large prime numbers. It remains the most widely recognized public key algorithm, still used across TLS, email encryption, and digital signatures. According to NIST, RSA security is categorized into three levels based on key length:
- 112-bit security (RSA-2048)
- 128-bit security (RSA-3072)
- 192-bit security (RSA-7680)
These levels correspond to the estimated computational effort required to break the encryption, with higher key lengths providing stronger security.
ECC (Elliptic Curve Cryptography)
Elliptic Curve Cryptography (ECC), introduced in the 1980s, is based on the mathematical difficulty of solving the elliptic curve discrete logarithm problem. ECC offers strong security with much shorter key lengths compared to RSA, making it efficient for modern applications such as TLS, mobile devices, and digital signatures. NIST defines three main security levels for ECC based on key size:
- 112-bit security (ECC-224)
- 128-bit security (ECC-256)
- 192-bit security (ECC-384)
ECC achieves the same security as RSA with much smaller key sizes, making it a good choice for constrained hardware like SIM cards, smartphones, and eID chips.
Why quantum computers threaten asymmetric encryption
Quantum computers pose a threat to asymmetric encryption because they can efficiently solve the two mathematical problems underlying today's public-key algorithms: factoring large numbers (RSA) and computing discrete logarithms (ECC).
Shor's algorithm, which runs on large-scale, fault-tolerant quantum computers, enables these problems to be solved exponentially faster than with classical computers, effectively breaking RSA and ECC. To defend against these attacks, entirely new cryptographic algorithms, known as post-quantum cryptography (PQC), are needed, as they are designed to remain secure even in the presence of quantum computers.
Asymmetric vs. symmetric cryptography: What is the difference?
The main difference between asymmetric and symmetric encryption lies in the number and type of keys used. Symmetric cryptography uses a single shared key for both encryption and decryption. It is fast and efficient, making it ideal for encrypting large amounts of data. Asymmetric cryptography uses a pair of mathematically linked keys: a public key for encryption and a private key for decryption. It is significantly slower and more computationally intensive, so it is typically not used for bulk data encryption.
The schemes differ in their applications: symmetric encryption is used for data encryption due to its speed. Asymmetric encryption is mainly used for secure key exchange (for example Diffie-Hellman), digital signatures, and authentication, enabling secure communication without pre-shared keys. In practice, both methods are often combined: asymmetric cryptography establishes a secure channel and exchanges a symmetric key, which is then used for efficient data encryption.
Keys used
Two (public + private)
One (shared secret)
Speed
Slower, more computationally intensive
Fast and efficient
Common use
Key exchange, digital signatures, certificates
Bulk data encryption
Example algorithms
RSA, ECC
AES
Frequently asked questions
Why post-quantum cryptography matters?
Asymmetric cryptography faces a real quantum threat and is expected to be broken with the arrival of powerful quantum computers. Migration to quantum-safe algorithms (PQC) is essential and must take place across all parts of affected digital infrastructures.
Get in touch
If you have any questions about our end-to-end business solutions or about our SecurityTech company, seek expert advice, or want to give us your feedback, our team is here to support you, anytime.

