RandomKeygen
Free · Private · Client-sideGenerated locally — never transmitted

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.

Combiner

SHA3-256 with \.//^\ domain label

Generated hybrid key pairML-KEM-768 + X25519

Generating your X-Wing (ML-KEM-768 + X25519) key pair…

IETF CFRG general-purpose hybrid KEM — compact 32-byte seed, used in HPKE, age, and modern WebCrypto trials

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

xwing.ts
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

01
Pick your hybrid KEM profile
Choose X-Wing (ML-KEM-768 + X25519) for modern web/HPKE/age workflows, or ML-KEM-1024 + P-384 to bridge CNSA 1.0 and CNSA 2.0 in one handshake.
02
Store only the 32-byte seed privately
X-Wing private keys are just 32 random bytes—the same size as an X25519 or AES-256 key—and deterministically expand into both ML-KEM and elliptic-curve keypairs.
03
Verify hybrid encapsulation locally
Run the live playground below to combine both classical ECDH and post-quantum ML-KEM into one 256-bit shared secret.

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 →