X-Wing Hybrid Post-Quantum KEM Generator (ML-KEM + ECC)
Generate real X-Wing (ML-KEM-768 + X25519), ML-KEM-768 + P-256, and ML-KEM-1024 + P-384 hybrid post-quantum key pairs locally in your browser. Defense-in-depth key exchange with compact 32-byte private seeds.
SHA3-256 with \.//^\ domain label
Generated hybrid key pairML-KEM-768 + X25519
Generating your X-Wing (ML-KEM-768 + X25519) key pair…
Live Hybrid Encapsulate → Decapsulate Test
Combines classical ECDH + post-quantum ML-KEM into a single 256-bit symmetric key locally in your browser.
Click Run Hybrid Encapsulation to test a full ML-KEM-768 + X25519 key exchange right in your browser.
Using X-Wing in TypeScript / Node.js
import { ml_kem768_x25519 } from '@noble/post-quantum/hybrid.js'
// X-Wing (draft-connolly-cfrg-xwing-kem): 32-byte seed -> 1216-byte pubkey
const { publicKey, secretKey } = ml_kem768_x25519.keygen()
// Sender encapsulates a hybrid shared secret (1120-byte ciphertext, 32-byte key)
const { cipherText, sharedSecret } = ml_kem768_x25519.encapsulate(publicKey)
// Recipient recovers the exact same 32-byte shared secret
const recovered = ml_kem768_x25519.decapsulate(cipherText, secretKey)Related Post-Quantum Tools & Guides
How to use this hybrid KEM generator
Defense-in-depth · Secure if EITHER classical OR post-quantum holds
Hybrid KEMs like X-Wing (ML-KEM-768 + X25519) combine classical elliptic-curve key agreement with NIST FIPS 203 ML-KEM inside a single combiner (SHA3-256). Even if a future breakthrough weakens one primitive, the combined 256-bit shared secret remains protected by the other. Need pure CNSA 2.0 without classical ECC? Use our ML-KEM-1024 generator.
Hybrid X-Wing vs. Pure ML-KEM-1024 comparison →