Python script tests TLS servers for X25519MLKEM768 support
Nov 24 find · published Nov 22A developer published a Python script using only standard library to test whether TLS servers negotiate X25519MLKEM768, the hybrid post-quantum key exchange now offered in every TLS 1.3 handshake from Chrome, Firefox and Safari. The tool reveals when servers fall back to classical X25519 without user awareness. The script sends a ClientHello offering only X25519MLKEM768 as a key share and reads the server's reply: a ServerHello naming group 0x11EC means post-quantum is on; a HelloRetryRequest asking for x25519 means the server lacks ML-KEM support. The hybrid share is 1,216 bytes: a 1,184-byte ML-KEM-768 encapsulation key plus a 32-byte X25519 public key. The script generates well-formed ML-KEM keys that pass FIPS 203 modulus checks without completing a handshake.
Comments
Sign in to join the conversation.