Your TLS Key Exchange

This connection uses X25519MLKEM768, a hybrid post-quantum key exchange.

This page shows the TLS group negotiated for the current browser connection and then explains what that result actually means.

Load each port from your browser and compare. If you also run Wireshark on the client, the TLS ClientHello and ServerHello will show the same key exchange group listed above.

Hostpqc.s04d.com
TLS versionTLSv1.3
Cipher suiteTLS_AES_256_GCM_SHA384
Negotiated key exchangeX25519MLKEM768
Underlying mathHybrid elliptic-curve Diffie-Hellman + lattice-based ML-KEM-768
Session key sent over the network?No
Protects against passive sniffing today?Yes
Better protected against future quantum attacks on the handshake?Yes
Post-quantum component present?Yes

The two endpoints of this lab

The demo intentionally serves the same PHP page over two different TLS front doors so you can compare the handshake side by side:

Same server, same certificate, same PHP code — only the TLS profile of the listener changes. If you run Wireshark on the client, the packets on port 443 carry a much larger key_share extension (MLKEM public keys are ~1kB) than the packets on port 8443 (X25519 is 32 bytes). That size difference is the visible fingerprint of the post-quantum handshake.

What This Check Is Showing

This page is not saying that the certificate alone is post-quantum secure. It is showing the key exchange negotiated for the current TLS session.

A TLS connection has two different security pieces:

That distinction matters. The certificate proves you are talking to the right server, but the session's post-quantum property comes mainly from the key exchange, not from the certificate by itself.

Why Sniffed Traffic Is Still Protected

An attacker can capture the TLS handshake messages and the encrypted traffic. The public key_share values are visible on the wire, but the actual session key never is — the client and server each derive it locally from the shares plus their own private material.

The concern with future attacks is often called harvest now, decrypt later:

That is where a post-quantum or hybrid key exchange matters. The goal is that seeing the handshake should still not be enough to reconstruct the session key later.

What Post-Quantum Does Not Protect

Post-quantum TLS does not protect against endpoint compromise. If an attacker steals the live session key from browser or server memory, the session is already compromised. In that case, no quantum attack is needed.

So the security model is:

Interactive Toy DH + Simulated Discrete-Log Attack

This is a teaching toy, not real security. It uses tiny numbers so you can see how a shared secret is created, what an attacker can sniff, and how a brute-force discrete-log attack would recover the private value in a breakable toy example. In a real system with big numbers, that discrete-log problem is what Shor's quantum algorithm would attack — here we just search all candidates because the field is tiny.

Public valuesp = 23, g = 5

In this toy example, p = 23 defines the small modular world where the arithmetic happens, and g = 5 is the public base used to generate the handshake values. These are public on purpose. In the real classical TLS path above, the math does not use these tiny numbers. Instead, X25519 works over a much larger field built around 2^255 - 19.

Alice sends-
Bob sends-
Shared secret-
Encrypted message-
What the attacker sees-
Simulated discrete-log attack-
Recovered message-

The attacker does not receive the shared secret directly. In this toy demo, they recover Alice's private value from the public handshake because the numbers are tiny. That is the intuition behind why a powerful quantum attack matters for discrete-log style systems.

Toy Post-Quantum Intuition

Lattice-based schemes do not hide a secret scalar the same way elliptic-curve Diffie-Hellman does. Instead, they rely on a different kind of hard problem built from vectors, matrices, and structured noise.

DH / ECC intuitionAlice and Bob hide a secret scalar. The attacker tries to recover that scalar from the public handshake values.
Lattice / PQC intuitionThe secret looks more like a hidden vector or hidden combination inside a larger structure. The attacker is no longer solving the same discrete-log style problem.
Known major quantum threatFor elliptic-curve systems, the concern is Shor-type algorithms against problems like recovering the secret scalar k from a public point Q = kG.
Why PQC mattersFor lattice-based systems, no equally devastating quantum algorithm is known today. That is why they are considered stronger candidates for post-quantum key exchange.

This does not mean lattice-based cryptography is proven unbreakable. It means that, unlike factoring and discrete-log systems, we do not currently know a quantum attack of the same kind of impact.

Shor threatens public-key systems based on factoring and discrete logarithms, while Grover mainly affects brute-force search and symmetric-key sizing.

Why The Post-Quantum Path Is Different

The post-quantum path is still trying to achieve the same goal: client and server end up with a shared session key without sending that key directly over the network.

The difference is that it does not rely only on the same classical math family as elliptic-curve Diffie-Hellman. In a hybrid result like X25519MLKEM768, one part is classical, and one part comes from a post-quantum construction.

So the practical point is not that one connection is encrypted and the other is not. Both are encrypted. The point is that if an attacker records the handshake today and tries to break it later, the hybrid path forces them to deal with more than just the classical part.

This is why the page says the hybrid path is better protected against future quantum attacks on the handshake.

Where to read the theory behind this

Post-quantum cryptography is a wide topic. Beyond the TLS handshake shown here, it touches how keys are generated, stored in HSMs, rotated across cloud KMS, embedded in PKI hierarchies, and how organizations should plan a migration that spans years and many protocols.

The Cloud Security Alliance published a paper that covers that broader picture in depth — key lifecycle, HSM/KMS readiness, hybrid schemes, downgrade risk, MTU/fragmentation concerns for larger keys, and a phased migration roadmap:

Post-Quantum Cryptography Key Management — Cloud Security Alliance

This lab is a small, practical companion to that reading. It shows one concrete slice of the transition made tangible in a browser: what a hybrid post-quantum TLS handshake actually looks like on port 443, what the classical fallback looks like on port 8443, and how the size of the key_share extension changes between the two. It is meant to make the abstract concept less abstract, not to replace the paper.