Commit Graph
24 Commits
Author SHA1 Message Date
LongYinan 2b8b617be0 feat(argon2): switch backend to argon2-rust (#1188)
* feat(argon2): switch backend to argon2-rust

Replace RustCrypto argon2 with argon2-rust 1.0.0 from crates.io.
Keep the public JS API. Verify accepts node-argon2 PHC param order
and associatedData. The bench pins the same raw params, salt, and
tag across implementations.

* fix(argon2): keep Node 22 tests and bound verify threads

Skip the node:crypto.argon2Sync comparison on runtimes that lack it.
Cap worker threads at available parallelism so a PHC p= value cannot
spawn one OS thread per lane. Allocate tag buffers with try_reserve
instead of vec! so a huge outputLen is a JS error, not a process abort.

* fix(argon2): skip node-argon2 interop when its native addon is missing

node-argon2 0.45 has no darwin-x64 prebuild. Intel macOS CI runs x64
Node on an ARM host, so a static import crashed the whole spec file.

* test(argon2): compare against node:crypto argon2

Drop the node-argon2 native addon from tests. Interop uses the
builtin KDF, which is available on every CI host that has it.
2026-08-13 11:01:01 +08:00
Olexandr88 d4ddd4b4e9 chore: add a link to the CI badge (#1038) 2026-01-12 23:04:48 +08:00
LongYinan 5232a7eedd chore: remove npm dirs (#913) 2024-10-27 00:08:23 +08:00
LongYinan 9f7b42cb31 docs: update README 2023-03-05 16:24:20 +08:00
LongYinan 792f69d7ac fix(*): Node.js worker_threads safe by upgrade NAPI-RS version (#623) 2022-05-07 15:40:05 +08:00
LongYinan b7d5776e59 docs: add argon2 in README 2021-12-30 11:36:00 +08:00
LongYinan a773a71432 chore: update dependencies and README 2021-12-22 18:40:25 +08:00
LongYinan ae614c6a7a docs: add xxhash into root 2021-10-22 13:08:05 +08:00
LongYinan 9fc0ea1e3b doc: update support matrix 2021-06-01 01:36:36 +08:00
LongYinan 36c3ac5fa1 docs: tweaks 2021-03-26 18:28:30 +08:00
LongYinan 1460072e23 docs: update support matrix [skip ci] 2021-02-01 15:21:37 +08:00
LongYinan 147a2a847f docs: update support matrix in readme 2021-01-04 01:39:08 +08:00
LongYinan 53c73e13d4 docs: add deno-lint to README.md [skip ci] 2020-08-19 11:12:35 +08:00
LongYinan 83464e624a docs: fix dm badges link [skip ci] 2020-08-10 16:26:09 +08:00
LongYinan 28e692aceb docs: add dm badges to README [skip ci] 2020-08-10 16:23:40 +08:00
LongYinan b70fa5c51b docs: update repo url [skip ci] 2020-07-15 11:51:17 +08:00
LongYinan 3114e547b3 chore: drop support for node10 musl 2020-06-12 12:02:24 +08:00
LongYinan 0e315051e2 feat: support linux musl 2020-06-12 02:23:30 +08:00
LongYinan f12f7fddd0 doc: add bcrypt to README 2020-05-15 17:43:29 +08:00
messense f0d2e6d019 Fix @node-rs/jieba link in README.md 2020-05-02 21:59:16 +08:00
LongYinan 9676a439ca feat(jieba): impl jieba-rs binding 2020-05-02 12:35:21 +08:00
LongYinan ce77668cb0 docs: add support matrix in crc32 README 2020-04-30 16:44:40 +08:00
LongYinan e044e4113b ci: add benchmark and publish job 2020-04-30 11:25:12 +08:00
LongYinan 62816f249d refactor(crc32): use faster implement 2020-04-28 20:22:23 +08:00