Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceComponentsnpm

libsodium-wrappers

libsodium compiled to WebAssembly and JavaScript with generated wrappers: X25519, Ed25519, XSalsa20-Poly1305 and ChaCha20-Poly1305 encryption, BLAKE2b, SHA-2, SHA-3, HMAC, Argon2 password hashing, ML-KEM-768 and the X-Wing hybrid KEM.

In short

What to know.

Algorithms
X25519, Ed25519, XSalsa20-Poly1305, ChaCha20-Poly1305 and 8 more2 of 12 would be broken by a large quantum computer.
Advisories
None in the storeOSV last read 3 December 2026, 16:48 UTC.
What to do
Plan a move away from X25519, Ed25519 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:48 UTC. That does not mean the package has no problems.

Reviewed 3 December 2026

Sources

  1. npm registry metadata for libsodium-wrappersregistry.npmjs.orgRetrieved 3 December 2026
  2. libsodium.js READMEgithub.comRetrieved 3 December 2026
  3. libsodium-wrappers 0.8.4 type definitionscdn.jsdelivr.netRetrieved 3 December 2026

Full record

Package
libsodium-wrappers
Ecosystem
npm
Role
Binding to a native library
Status
Not marked deprecated by its registry or maintainers.
Notes
The standard build omits scrypt; use libsodium-wrappers-sumo for it. ML-KEM-768 and X-Wing (crypto_kem_*) are present in the 0.8.4 type definitions.
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:48 UTC
Findings
No finding refers to this package yet.

Algorithms it provides

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.X25519, Ed25519
  • Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.XSalsa20-Poly1305, ChaCha20-Poly1305, BLAKE2 (BLAKE2b, BLAKE2s), SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), SHA-3 and SHAKE, HMAC, Argon2
  • Designed to resistDesigned to resist known quantum attacks. That is a design goal, not a proof.ML-KEM
  • HybridCombines a classical scheme with a post-quantum one, so an attacker has to break both parts.X25519MLKEM768
  • Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation

Notes describe algorithm families, not any one project.