Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@rabbit-company/argon2id

Latest version: v2.2.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: ziga.zajc007
4 Stars
1 Forks
1 Versions
2.0K Downloads
TypeScript Repo language

Scan summary

@rabbit-company/argon2id was last scanned on 30 Nov 2026 at version 2.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 30 Nov 2026.
  • Findings: 1 rule fired in version 2.2.0 (1 low). The score describes this version only.
  • Downloads: 2,009 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
2.2.0 LATEST 30 Nov 2026 1 rule fired

Rules fired in 2.2.0: 1

Findings

1 Low

Findings for v2.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

WebAssembly module included

The package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 2.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Argon2id-WASM

Argon2id password hashing for browsers, Bun, Deno and Node.js. The hashing runs in WebAssembly compiled from the RustCrypto argon2 crate.

  • Runs in a Web Worker when one is available, so the page stays responsive.
  • Reads and writes the standard PHC string format, so hashes work with PHP, libsodium, the argon2 CLI and other implementations.
  • Wipes the message, salt and Argon2 working memory inside WebAssembly after every hash.

Install

npm i @rabbit-company/argon2id
import Argon2id from "@rabbit-company/argon2id";

Hashing

const hash = await Argon2id.hash(message, salt, parallelism, memory, iterations, length);
Parameter Default Meaning
message Text to hash, encoded as UTF-8
salt Argon2id.randomSalt() Text salt, encoded as UTF-8. At least 8 bytes
parallelism 4 Lanes, at least 1
memory 16 Memory cost. Values up to 20 are powers of two in KiB, so 16 means 2^16 KiB (64 MiB). Larger values are KiB. At least 8 KiB per lane
iterations 3 Passes over the memory, at least 1
length 32 Output length in bytes, at least 4

hash resolves to the hash as lowercase hexadecimal and rejects with a message when a parameter is out of range or the memory can not be allocated.

const hex = await Argon2id.hash("4d7f2a9c1e8b", Argon2id.randomSalt(), 4, 65536, 3, 32);

Encoded hashes

hashEncoded takes the same parameters and returns a PHC string that stores the parameters and salt with the hash.

const encoded = await Argon2id.hashEncoded("4d7f2a9c1e8b");
// $argon2id$v=19$m=65536,t=3,p=4$c0FsVHNhbHRzQWxU$...

const matches = await Argon2id.verify(encoded, "4d7f2a9c1e8b"); // true
const digest = Argon2id.hashDecode(encoded); // the hash as hexadecimal

verify accepts encoded hashes from other Argon2 implementations too, including ones with random binary salts. It compares in constant time and rejects with "invalid hash", "unsupported algorithm" or "unsupported version" when the string is malformed.

Helpers

Argon2id.randomSalt(); // 16 random letters and digits, about 95 bits
Argon2id.randRange(0, 100); // unbiased cryptographically random integer from 0 to 99
Argon2id.hexToBase64("0931"); // "CTE="
Argon2id.base64ToHex("CTE="); // "0931"

Web Worker

Serve argon2id_worker.js and argon2id_wasm_bg.wasm from node_modules/@rabbit-company/argon2id/module/ next to the script that imports the library. Hashing then runs in a worker. Without them it runs on the calling thread with the WebAssembly embedded in the module, and gives the same results.

Building

bun run build-rust   # compile the Rust code to WebAssembly and embed it
bun run build        # bundle browser, module and dist
bun test

build-rust needs the wasm32-unknown-unknown Rust target.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @rabbit-company/argon2id

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229