Security

What Does Post-Quantum Cryptography Mean? Algorithms, Examples and Migration

A practical guide to quantum-resistant algorithms, hybrid TLS, digital signatures, forward secrecy and migration, with diagrams and a tested connection check.

Share

Post-quantum cryptography (PQC) means cryptographic algorithms designed to resist attacks from both conventional computers and sufficiently powerful quantum computers. They run on ordinary computers. The main transition concerns public-key methods used to establish encryption keys and create digital signatures.

For a software team, the practical question is which cryptographic job needs to change. A website’s key exchange, a certificate’s signature, a database’s encrypted storage and a software update’s signature perform different jobs. Replacing one does not automatically upgrade the others.

The essential distinction: a key-encapsulation mechanism establishes a shared secret; a symmetric cipher protects data with a secret key; a digital signature lets a verifier check signed data. PQC migration must account for all the relevant uses.

What does “post-quantum” mean?

The term describes preparation for the threat from a cryptographically relevant quantum computer. It does not mean the algorithms require quantum hardware, or that a company must wait until such a machine exists. NIST’s explanation of post-quantum cryptography describes the goal as protection against both classical and quantum attacks.

You will also encounter quantum-resistant and quantum-safe cryptography. These describe a security goal, subject to the assumptions, analysis and implementation of the chosen scheme. “Quantum-proof” is a less useful engineering claim because it suggests certainty about every future attack. A supported algorithm, a protocol and evidence of correct use are more informative.

TermWhat it describesHardware implication
Post-quantum cryptographyMathematical algorithms intended to resist quantum and classical attacksRuns on conventional processors.
Quantum computingComputing using quantum information and operationsRequires quantum hardware; it is not a universal speed-up for every problem.
Quantum key distribution (QKD)Establishing key material using quantum physical effectsRequires specialised equipment and a suitable communication channel; authentication is still needed.
Hybrid post-quantum key exchangeCombining traditional and post-quantum key-establishment contributionsCan operate in ordinary network software when both peers support the protocol.
PQC and quantum key distribution solve related security problems through different mechanisms.

Why RSA and elliptic-curve cryptography face a different threat from AES

RSA relies on the difficulty of factoring an appropriately constructed large integer. Widely used Diffie-Hellman and elliptic-curve systems rely on discrete-logarithm problems. Shor’s algorithm gives a sufficiently capable quantum computer an efficient way to solve these classes of problems. Increasing an RSA key length alone does not provide the kind of quantum resistance targeted by PQC.

That statement requires a capable, fault-tolerant machine and the resources to execute the attack. A laboratory device’s physical qubit count alone is not enough to establish that it can break a deployed key. Error correction, logical qubits, circuit depth and execution time all matter. There is no dependable universal date on which every existing system suddenly becomes vulnerable.

AES is a symmetric cipher with a different security basis. Grover’s algorithm offers a theoretical quadratic improvement in brute-force search, with substantial practical constraints. NIST’s PQC FAQ says applications can continue using AES with 128-, 192- or 256-bit keys under its existing guidance. This is why migration discussions concentrate on vulnerable public-key mechanisms rather than simply replacing every AES-encrypted database.

Consider a file encrypted with a sound symmetric algorithm. If its data key is protected using a quantum-vulnerable public-key mechanism, the overall protection still depends on that mechanism. Follow the data key through generation, wrapping, transport, storage and recovery. A label stating “AES-256” describes only part of that lifecycle.

Does forward secrecy already protect recorded traffic?

Forward secrecy protects past session keys if a long-term authentication key is compromised later, provided the protocol’s assumptions hold and ephemeral secrets have been erased. The TLS 1.3 security analysis describes that property. It does not make an elliptic-curve key exchange resistant to an attacker who can solve the underlying discrete-logarithm problem.

For a recorded classical ECDHE handshake, a sufficiently capable quantum attacker could attack the ephemeral public shares themselves. Deleting the server’s ephemeral private key does not remove those public values from a recording. This is the reason forward secrecy and post-quantum key establishment address different threats.

Also check session resumption and early data. A resumed TLS session can depend on secrets established by an earlier handshake, and 0-RTT early data has different security properties. A single successful fresh handshake cannot describe every session mode an application permits.

How does post-quantum cryptography work?

Different families use different hard mathematical problems. Lattice-based schemes work with high-dimensional algebraic structures. In ML-KEM, security is related to Module Learning with Errors: roughly, recovering a hidden value from structured equations containing carefully chosen small errors. The real construction includes exact parameters, encodings and validation rules; a two-dimensional grid is only a teaching analogy.

FIPS 203 defines ML-KEM, a key-encapsulation mechanism with three parameter sets: ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The number in the name is a parameter identifier, not a claim that the scheme provides that many bits of security. Parameter selection belongs to the protocol and applicable security requirements.

  1. Generate a key pair. The recipient creates a public encapsulation key and a private decapsulation key. The private key stays secret.
  2. Encapsulate. The other party uses the public key and fresh randomness to produce a shared secret and a ciphertext. It sends the ciphertext over the connection.
  3. Decapsulate. The recipient uses the private key and that ciphertext to recover the same shared secret when the operation is valid.
  4. Derive traffic keys. A protocol uses that secret through its specified key schedule. Symmetric authenticated encryption then protects the application messages.
A recipient publishes an encapsulation key. A sender creates a ciphertext and shared secret. The recipient decapsulates the ciphertext to obtain the shared secret. The protocol derives keys for encrypted data.
Conceptual KEM flow based on FIPS 203. A deployed protocol must also establish the peer’s identity and bind the exchange to the session.

The KEM ciphertext carries the information needed to establish a secret; it is not the encrypted customer document. Nor does a bare KEM prove that the public key belongs to the organisation you intended to contact. Protocol authentication prevents an attacker from simply substituting a key they control.

The NIST algorithms: ML-KEM, ML-DSA and SLH-DSA

StandardJobUnderlying approach
FIPS 203: ML-KEMEstablish a shared secret used by a secure protocolModule-lattice construction; developed from CRYSTALS-Kyber.
FIPS 204: ML-DSACreate and verify digital signaturesModule-lattice construction; developed from CRYSTALS-Dilithium.
FIPS 205: SLH-DSACreate and verify digital signaturesStateless hash-based construction; developed from SPHINCS+.
These three standards were finalized on August 13, 2024. They perform two distinct jobs; they are not three interchangeable file-encryption products.

The hash-based approach in SLH-DSA provides a different mathematical foundation from the lattice-based schemes. It builds signatures from hash-based components and a tree structure. “Stateless” means the signer does not have to maintain the evolving signing state required by stateful hash-based schemes; secure private-key storage and correct randomness are still essential.

Choosing between signature schemes involves more than choosing the largest number. Signature size, public-key size, signing cost, verification cost and support in the consuming protocol all matter. An embedded device that verifies firmware occasionally has a different workload from an identity service issuing large numbers of short-lived tokens. Use the protocol’s supported options and benchmark that actual workload.

A signature helps a verifier detect a change to signed data and check that it was signed by the holder of a particular private key. The verifier still needs a trustworthy association between the public key and the intended identity. Signing a document does not hide its contents.

That distinction is important for firmware updates, signed software packages, certificates and tokens. A service may adopt post-quantum key establishment while continuing to use classical signatures. The transport’s confidentiality progress and the authentication migration should therefore be tracked separately.

These are the three principal standards released in 2024. NIST continues developing additional standards and alternatives; consult its current PQC programme when making an implementation decision. A selected candidate, a draft specification and a finalized standard have different status.

Older product documentation may refer to Kyber or Dilithium. Do not assume that an experimental implementation with a predecessor name is interoperable with the final standardized version. Ask the vendor for the exact algorithm, parameter set, protocol integration and supported software version.

A practical example: hybrid post-quantum TLS

A common TLS 1.3 construction is X25519MLKEM768. It combines X25519 and ML-KEM-768 contributions inside the TLS key schedule. RFC 10024 specifies this group and its wire representation. A correctly implemented hybrid construction is intended to preserve key-establishment security while at least one component remains secure under its assumptions.

In the client-server flow, the client supplies an ML-KEM encapsulation key and its X25519 share. The server returns an ML-KEM ciphertext and its X25519 share. Each side obtains the contributions needed for the combined shared secret. The connection also performs authentication according to its TLS configuration.

A connection reporting TLS 1.3 alone does not prove that it used a post-quantum group. Likewise, a cipher-suite name such as TLS_AES_256_GCM_SHA384 describes the symmetric cipher and hash, not the selected key-agreement group. Inspect the negotiated group as a separate field.

Dude Lemon’s engineering article describes our verification of hybrid key exchange on sampled edge-to-application connections. The browser, database driver and third-party APIs each have their own connection behavior.

Encryption, authentication and end-to-end protection

Security questionRelevant mechanismWhat to check
Can recorded traffic remain confidential against a future quantum attack?Post-quantum key establishment plus suitable symmetric encryptionThe negotiated group on every exposed hop and the treatment of resumed sessions.
Can a peer resist impersonation by a quantum-capable active attacker?Post-quantum authentication and an appropriate trust policyHandshake signatures, certificate-chain validation and whether vulnerable alternatives are still accepted.
Can an intermediary read the application data?Application architecture and end-to-end encryptionWhere TLS terminates and which systems hold keys or receive plaintext.
Are stored records protected?Storage encryption and its key-management systemData keys, wrapping keys, backups, access controls and recovery paths.
These questions need separate evidence. A hybrid key-agreement group answers only part of the assessment.

A hybrid exchange can protect confidentiality against a passive attacker recording an honestly authenticated session while authentication still uses classical signatures. An active attacker able to forge an accepted signature presents a different problem. Cloudflare’s origin-authentication engineering guide explains why authentication migration must also address the trust policy and downgrade paths.

Hybrid key exchange does not mean every message is encrypted twice. Its component secrets contribute to the protocol’s key schedule; the resulting traffic keys are used by the negotiated symmetric cipher. Likewise, two HTTPS hops through a reverse proxy are separately encrypted sessions. The proxy generally decrypts and processes data between them.

What changes in size and performance?

Post-quantum mechanisms often exchange larger public values than their classical counterparts. The effect depends on the algorithm, protocol, client, network and implementation. Byte counts can be compared precisely; latency and throughput require measurements in your environment.

X25519MLKEM768 key-exchange values: client share 1,216 bytes, consisting of 1,184 ML-KEM bytes and 32 X25519 bytes; server share 1,120 bytes, consisting of 1,088 ML-KEM bytes and 32 X25519 bytes.
Bytes in the key_exchange values, from RFC 10024 sections 4.1 and 4.2. These are not complete TLS messages, certificate sizes or measured latency.

The two hybrid shares total 2,336 bytes, of which 64 bytes are X25519 contributions. The remaining 2,272 bytes are the ML-KEM contributions. This arithmetic comes from the specified share sizes; it is not an estimate of the size of an entire handshake or an application payload.

Test cold connections as well as resumed sessions. Include slower mobile networks, corporate inspection proxies, older clients and the specific gateways your users depend on. Larger handshake messages can expose buffering or fragmentation problems even when a local test succeeds. Record failure rate, handshake duration at relevant percentiles and resource use on representative hardware.

Signature migration has its own size and compatibility considerations: certificate chains, tokens, signed packages and embedded verification code may all be affected. A benchmark of ML-KEM does not establish the performance of ML-DSA or SLH-DSA. Measure the operation your system actually performs.

How to check a website’s post-quantum TLS support

Use a current OpenSSL build that supports X25519MLKEM768, such as OpenSSL 3.5 or later with the relevant provider enabled. The s_client documentation explains the diagnostic options. Use the hostname you intend to check in all three hostname options below. The same name is used for the connection, SNI and certificate identity validation.

shellCheck one public TLS endpoint with certificate verification
1openssl version
2openssl s_client \
3 -connect dudelemon.com:443 \
4 -servername dudelemon.com \
5 -verify_hostname dudelemon.com \
6 -verify_return_error \
7 -tls1_3 \
8 -groups X25519MLKEM768 \
9 -brief </dev/null

This command was checked against dudelemon.com with OpenSSL 3.6.5 on December 4, 2026. The following lines are an excerpt of that one synthetic connection’s output:

textObserved public-endpoint output, December 4, 2026
1Protocol version: TLSv1.3
2Ciphersuite: TLS_AES_256_GCM_SHA384
3Signature type: ecdsa_secp256r1_sha256
4Verification: OK
5Verified peername: dudelemon.com
6Negotiated TLS1.3 group: X25519MLKEM768

The hybrid group was selected and certificate verification passed. The handshake signature shown was ECDSA, a classical signature scheme. This demonstrates why the negotiated group and authentication must be read separately. It is a public-edge observation, distinct from the edge-to-application verification in our engineering article.

ResultInterpretationNext check
Hybrid group selected and verification passesThis client established this connection with the requested groupRecord time, endpoint and client version; assess normal client negotiation separately.
Unknown or unsupported group reported locallyThe local OpenSSL build or active provider cannot use the requested groupCheck the client version and provider before drawing a conclusion about the server.
Handshake fails with the group forcedThis forced attempt did not establish the requested sessionInvestigate protocol compatibility, endpoint policy and the network path; failure alone does not identify the cause.
Certificate verification failsThe peer was not validated under this client’s trust configurationResolve the trust or hostname issue. Preserve verification rather than bypassing the error.
A forced-group probe is a capability test. It does not measure what normal browsers select or establish fleet-wide coverage.

The command deliberately offers only one group. It cannot demonstrate default negotiation, the percentage of user sessions using PQC, or the connection from a CDN to its origin. Keep the origin’s network restrictions intact and use approved server-side telemetry for that separate hop. Repeatable observations under representative clients are needed to measure adoption.

Why harvest now, decrypt later changes the timetable

Suppose a fictional business needs a confidential document to remain private for ten years and expects an infrastructure migration to take two years. Waiting until a practical attack is demonstrated would leave traffic captured during those two years exposed to whatever future decryption becomes possible. The planning problem starts with the lifetime of the information and the time required to change its protection.

Illustrative assetConfidentiality or trust requirementUseful first action
Long-term research documentsTen-year confidentiality requirement in this exampleTrace upload, integration and backup key protection; prioritise exposed key-establishment dependencies.
A short-lived public catalogue responseThe response is already publicKeep transport and authentication secure; assess availability and integrity rather than invent a secrecy requirement.
A device expected to remain deployed for twelve yearsTrusted updates across its operating lifeCheck whether signature verification and trust anchors can be upgraded after shipment.
A managed database connectionSensitivity depends on the records and connection pathInspect driver, proxy and provider support; assess stored-data keys separately.
Fictional planning examples. These are not customer statistics, retention requirements or a forecast for quantum computing.

Use this exercise to rank work, then add ownership, supplier lead time and service impact. A low-traffic system with long-lived confidential records can warrant earlier attention than a larger public website. For each priority, define a release condition: required connections negotiate the approved group, authentication remains valid, representative clients pass, and unexplained fallback is investigated.

Does AI break encryption, and is “post-AI encryption” different?

As of December 4, 2026, the December 2 joint government statement called for accelerated cryptographic modernization while assessing that recent advances did not constitute an immediate and widespread threat. That supports preparation; it does not establish that all RSA, elliptic-curve or post-quantum systems have been practically broken.

Cloudflare’s technical analysis of the recent lattice research describes theoretical results that do not compromise deployed ML-KEM or ML-DSA systems. A mathematically interesting algorithm can still require infeasible hardware or running time. A headline about a new proof should be read alongside the assumptions and the resource estimate.

AI-assisted cryptanalysis can help researchers find weaknesses and improve attacks. Post-quantum cryptography remains the relevant standards category here. When assessing a product described as post-AI encryption, ask for the actual cryptographic algorithms and protocol. The label alone does not explain its security.

How to plan a post-quantum migration

NIST’s migration project separates cryptographic discovery from interoperability testing. Use that division to organise the work: first establish where cryptography is used, then demonstrate that the replacement works across the actual dependencies.

  1. Inventory cryptographic uses. Include public and internal TLS, SSH, VPNs, certificates, signing keys, software updates, identity tokens and key-wrapping services. Record the job each mechanism performs.
  2. Map data and trust lifetimes. Identify records that must remain confidential and devices or signatures that must remain trustworthy for years. Record why the lifetime matters.
  3. Identify the component that controls the change. It might be a browser, proxy, operating system, library, cloud service, HSM, firmware image or external vendor. Assign an owner and a supported upgrade path.
  4. Pilot supported integrations. Use maintained cryptographic libraries and vendor-supported protocol configurations. Test interoperability, failure behavior, authentication and the negotiated result.
  5. Release with operational evidence. Compare representative errors and performance with the baseline, monitor fallback, and document recovery. Track exceptions rather than treating one successful connection as a completed migration.
  6. Maintain the inventory. Reassess dependencies, algorithms and evidence as versions change. Crypto agility includes the ability to replace a mechanism without losing access to protected data or breaking trust relationships.

For every inventory row, record the endpoint or component, purpose, current algorithm, exact version, data lifetime, responsible owner, dependency, target state and last verification date. Add a separate status for “supported,” “configured” and “observed.” A provider roadmap belongs in the dependency column until the capability is available and tested.

The downloadable cryptographic inventory template includes these fields and clearly labelled example rows. Use the software design specification guide to connect a migration requirement to an implementation decision and an acceptance test.

PQC work also depends on ordinary security engineering: access control, sound randomness, private-key protection, patching and incident response. The Node.js production security guide covers those application concerns. A quantum-resistant algorithm cannot protect plaintext after a compromised endpoint has legitimately decrypted it.

Frequently asked questions

Do I need a quantum computer to use post-quantum cryptography?

No. Post-quantum algorithms run on conventional computers and can be integrated into supported libraries, operating systems and network protocols.

Does post-quantum cryptography replace AES?

The main transition replaces vulnerable public-key key-establishment and signature mechanisms. Symmetric encryption remains part of the architecture; also examine how its keys are generated, transported and stored.

Is HTTPS already post-quantum secure?

HTTPS alone does not tell you. Check the selected key-agreement group, authentication mechanism and every relevant connection hop. TLS version and cipher suite alone are insufficient evidence.

Does forward secrecy make TLS quantum-resistant?

No. Forward secrecy protects against later compromise of long-term authentication keys under the protocol’s assumptions. A capable quantum attack on recorded classical ephemeral key shares is a separate threat addressed by post-quantum key establishment.

Is ML-KEM an encryption algorithm or a signature algorithm?

ML-KEM is a key-encapsulation mechanism for establishing a shared secret. A protocol can use that secret to derive encryption keys. ML-DSA and SLH-DSA are digital signature algorithms.

Will switching today protect old captured traffic?

A new key-establishment mechanism protects new sessions that negotiate it. It does not retroactively change traffic already captured under an older mechanism.

Does using a NIST algorithm make a product FIPS validated?

No. An algorithm standard and validation of a cryptographic module are different things. Check the module, version, operating environment and applicable validation requirements.

When should a business start?

Start by inventorying cryptographic dependencies and identifying long-lived confidential data and difficult-to-upgrade components. Schedule migration around those risks, supported integrations and applicable obligations rather than an assumed universal quantum deadline.