Post-quantum cryptography
This page explains how WSO2 API Platform protects data against quantum-capable attackers. It covers the API Gateway, AI Gateway, Platform API, AI Workspace, and API Portal.
Why it matters now
A large enough quantum computer would break the public-key algorithms that secure connections and digital signatures rely on today: RSA, elliptic-curve Diffie-Hellman (ECDH), and ECDSA. No such machine exists yet. But an attacker can record encrypted traffic now and decrypt it once one does ("harvest now, decrypt later"), so data that must stay confidential for years is already exposed to that risk.
Symmetric encryption and hashing are much less affected. The best known quantum attack on them only halves their effective strength, so 256-bit keys and 256-bit hashes remain adequate.
Posture at a glance
| Area | Where the platform stands |
|---|---|
| Encryption at rest | Quantum-resistant in every component since its first release |
| Hashing | Quantum-resistant in every component since its first release |
| Key exchange | Hybrid post-quantum key exchange in the gateway from release 2026.09.24 |
| Signatures | Classical; post-quantum signatures aren't supported yet |
Key exchange is the area that "harvest now, decrypt later" attacks target. Forging a signature needs a quantum computer at the moment of the attack, so classical signatures aren't an exposure yet.
Encryption at rest
Every component encrypts the secrets and credentials it stores with AES-256-GCM. This 256-bit symmetric cipher stays secure against quantum attacks, so stored data is already protected. Your part is keeping the encryption keys safe.
Learn more:
Hashing
The platform never stores the API keys that clients present, only their SHA-256 hashes. API keys are long random values, so their hashes keep at least 128 bits of security even against a quantum attacker.
User passwords are stored as bcrypt or Argon2id hashes. These algorithms protect human-chosen passwords by making each guess expensive, and quantum computing doesn't change that.
Key exchange
From release 2026.09.24, the gateway supports hybrid post-quantum key exchange. A hybrid key exchange combines a classical algorithm (X25519) with ML-KEM-768, the post-quantum key-encapsulation mechanism standardized in FIPS 203. The connection stays secure as long as either algorithm holds.
By default, the gateway offers hybrid key exchange on these connections:
- Tools calling the gateway management API
- The gateway calling identity providers and other external services
- The gateway sending analytics and traffic logs to your collectors
Two connections default to classical key exchange: clients calling APIs through the gateway, and the gateway calling your backend services. Both support hybrid key exchange, which you turn on explicitly; see Enabling it on the router.
A connection uses hybrid key exchange only when both ends support it, and only over TLS 1.3. A client or backend that doesn't support it falls back to classical key exchange, so older peers keep working.
Current releases of the Platform API, AI Workspace, and API Portal use classical key exchange.
Signatures
The platform uses RSA, ECDSA, or HMAC for every token and signature it issues or accepts. That includes access tokens from your identity provider, tokens the Platform API issues, tokens the gateway sends to your backends, and webhook signatures.
Post-quantum signatures (ML-DSA, FIPS 204) aren't supported yet, and identity providers don't widely issue them either. HMAC relies on a shared secret rather than public-key cryptography, so quantum attacks don't weaken it the way they weaken RSA and ECDSA.
Until post-quantum signatures are available, these practices limit the risk:
- Keep token lifetimes short.
- Use strong keys.
- Rotate signing keys regularly.
Current limitations
- Signatures are classical. Tokens, published keys, and certificates use RSA or ECDSA.
- Hybrid key exchange is gateway-only for now. Current releases of the Platform API, AI Workspace, and API Portal use classical key exchange.
- API traffic is classical by default. Hybrid key exchange on client-facing and backend connections must be turned on explicitly.
- Older peers fall back silently. A peer that doesn't support hybrid key exchange connects with classical key exchange.
Was this page helpful?