PLAIN QUANTUM
Quick answer

What is public-key cryptography?

The short answer

Public-key cryptography uses a pair of keys instead of one. The public key can be shared with anyone; the matching private key is kept secret by its owner. That simple idea lets two computers that have never met set up a secure connection, and lets anyone check who sent a message. It's in almost every secure connection, card payment and software update, and it's the part of today's cryptography that quantum computers threaten.

Two keys instead of one

Older cryptography, called symmetric, uses one secret key shared by both sides. It's fast and strong, but it has a chicken-and-egg problem: how do two parties agree that key in the first place, over a network anyone could be listening to? Public-key cryptography, invented in the 1970s, solved it. The two keys are made as a mathematically linked pair, but working out the private key from the public one is, for an ordinary computer, impossibly hard.

PUBLIC KEYPRIVATE KEY hand out copies;anyone can lock kept secret;only it unlocks The two keys are made as a pair. Sharing the public one is safe, as long as nobody can work out the private one from it.
An analogy, not the maths. It fits how one side can send the other a secret; signatures run the other way, with the private key doing the locking (see digital signatures). The last line is exactly what a large quantum computer would undo for RSA and elliptic-curve keys.

Two jobs

  • Setting up shared secrets. Two systems use their key pairs to agree a fresh secret key, called key establishment or key agreement, without ever sending that secret across the network.
  • Proving who sent something. A digital signature made with a private key can be checked by anyone with the public key. Certificates, signed software and signed payment messages all rely on this.

How it works with symmetric cryptography

Public-key cryptography is much slower than symmetric cryptography, so the two work as a team. When your banking app connects, public-key cryptography agrees a fresh key; then a symmetric algorithm such as AES encrypts everything else with it.

1. PUBLIC-KEY: AGREE A SECRET KEY small job, once per connection today: RSA or elliptic curves quantum-vulnerable: move to ML-KEM shared key 2. SYMMETRIC: ENCRYPT THE DATA fast, everything that's sent today: AES holds up: check the key size
Public-key cryptography does the small, hard job of getting a shared secret between two parties who have never met. Symmetric cryptography then does the heavy lifting with that secret. Quantum computing threatens step 1, which is why the migration is mostly about public-key cryptography.

Why quantum computers threaten it

Today's public-key cryptography rests on two maths problems: factoring huge numbers (RSA) and a related problem on elliptic curves (ECC). Both are hard for ordinary computers. Shor's algorithm would let a large enough quantum computer solve both, working out private keys from public ones. Symmetric cryptography isn't affected in the same way; it only needs adequate key sizes.

What replaces it

The replacements are still public-key cryptography, just built on different maths: ML-KEM for agreeing keys, and ML-DSA, SLH-DSA and FN-DSA for signatures. They run on ordinary computers and keep the same two-key idea.

Common confusions

  • "Post-quantum cryptography isn't public-key cryptography." It is. Only the underlying maths changes.
  • "Longer RSA keys would fix it." No. Shor's algorithm scales to larger keys; the answer is migration, not a bigger key.
  • "The public key is a weakness because it's public." No. It's designed to be shared. The weakness quantum computing would create is in the maths that links it to the private key.

Sources and further reading

Tags show what kind of source each one is (how sources are used). Checked against these sources on 12 October 2026. Spotted an error? Email hello@plainquantum.com and it will be corrected, with a note.

  1. Peer-reviewed paperNew directions in cryptographyWhitfield Diffie and Martin Hellman, IEEE Transactions on Information Theory, 1976
  2. Peer-reviewed paperA method for obtaining digital signatures and public-key cryptosystemsRivest, Shamir and Adleman, Communications of the ACM, 1978
  3. StandardFIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)NIST, 2024
  4. StandardPost-Quantum Cryptography project (status of FN-DSA and other work)NIST Computer Security Resource Center