@tupik/password 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,12 +58,16 @@ Only Argon2id v1.3 is read and written. Hashes from `argon2`, `@node-rs/argon2`,
|
|
|
58
58
|
|
|
59
59
|
## Cost and the Workers CPU limit
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
CPU time per hash or verification, one at a time. Node.js 24 on x86-64 (native `@node-rs/argon2` for
|
|
62
|
+
comparison), and a deployed Cloudflare Worker using the published 1.1.0 package (CPU time reported by
|
|
63
|
+
`wrangler tail`, 2026-12-02):
|
|
62
64
|
|
|
63
|
-
| Profile | m / t / p | WASM | Native |
|
|
64
|
-
| --- | --- | --- | --- |
|
|
65
|
-
| `owasp` | 19456 KiB / 2 / 1 | ~40 to 55 ms | ~25 ms |
|
|
66
|
-
| `light` | 4096 KiB / 1 / 1 | ~4 to 6 ms | ~2 ms |
|
|
65
|
+
| Profile | m / t / p | WASM on Node.js | WASM on Workers | Native on Node.js |
|
|
66
|
+
| --- | --- | --- | --- | --- |
|
|
67
|
+
| `owasp` | 19456 KiB / 2 / 1 | ~40 to 55 ms | ~40 to 60 ms | ~25 ms |
|
|
68
|
+
| `light` | 4096 KiB / 1 / 1 | ~4 to 6 ms | ~6 to 9 ms | ~2 ms |
|
|
69
|
+
|
|
70
|
+
A sign-in that hashes once and verifies once costs about twice the per-operation figure.
|
|
67
71
|
|
|
68
72
|
Cloudflare Workers count **CPU time** per request: **10 ms on the free plan**, 30 s by default on the paid plan.
|
|
69
73
|
`owasp` does not fit the free plan (the request fails with "exceeded CPU"); on the paid plan it is fine.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tupik/password",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Argon2id password hashing for Tupik, compiled from Rust to WebAssembly: PHC strings, constant-time verify and needsRehash on Workers, Node.js and Bun.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|