hpke-js
Hybrid Public Key Encryption (RFC 9180) on top of WebCrypto, with DHKEM over P-256, P-384, P-521, X25519 and X448, HKDF-SHA-2, and AES-GCM or ChaCha20-Poly1305.
In short
What to know.
- Algorithms
- HPKE, ECDH (Weierstrass curves), X25519, X448 and 3 more4 of 7 would be broken by a large quantum computer.
- Advisories
- None in the storeOSV last read 3 December 2026, 16:49 UTC.
- What to do
- Plan a move away from HPKE, ECDH (Weierstrass curves), X25519, X448 before large quantum computers exist.
0 in the store
Advisories
No advisory in the store for this package.
OSV listed none on 3 December 2026, 16:49 UTC. That does not mean the package has no problems.
Reviewed 3 December 2026
Sources
- npm registry metadata for hpke-jsregistry.npmjs.orgRetrieved 3 December 2026
- hpke-js repository README (supported algorithms tables)github.comRetrieved 3 December 2026
Full record
- Package
- hpke-js
- Ecosystem
- npm
- Role
- Protocol
- Repository
- github.com/dajiaji/hpke-js
- Status
- Not marked deprecated by its registry or maintainers.
- Notes
- The maintainers recommend @hpke/core with extension modules where possible.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:49 UTC
- Findings
- No finding refers to this package yet.
Algorithms it provides
- HPKE public-key-encryptionClassical public keyBroken by Shor's algorithm
- ECDH (Weierstrass curves) key-exchangeClassical public keyBroken by Shor's algorithm
- X25519 key-exchangeClassical public keyBroken by Shor's algorithm
- X448 key-exchangeClassical public keyBroken by Shor's algorithm
- HKDF kdfSymmetricWeakened by Grover's search
- AES-GCM aeadSymmetricWeakened by Grover's search
- ChaCha20-Poly1305 aeadSymmetricWeakened by Grover's search
What a large quantum computer would change
- Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.HPKE, ECDH (Weierstrass curves), X25519, X448
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.HKDF, AES-GCM, ChaCha20-Poly1305
Notes describe algorithm families, not any one project.