@fgv/ts-web-extras-argon2 5.1.0-27 → 5.1.0-29

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.
Files changed (39) hide show
  1. package/.rush/temp/84f4698424f6c0bcfb3eeaa50b47f3e82ab9c5a7.tar.log +42 -0
  2. package/.rush/temp/chunked-rush-logs/ts-web-extras-argon2.build.chunks.jsonl +9 -0
  3. package/.rush/temp/operation/build/all.log +9 -0
  4. package/.rush/temp/operation/build/log-chunks.jsonl +9 -0
  5. package/.rush/temp/operation/build/state.json +3 -0
  6. package/.rush/temp/shrinkwrap-deps.json +8 -7
  7. package/dist/index.js +21 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/packlets/argon2/browserArgon2Provider.js +88 -0
  10. package/dist/packlets/argon2/browserArgon2Provider.js.map +1 -0
  11. package/dist/packlets/argon2/index.js +24 -0
  12. package/dist/packlets/argon2/index.js.map +1 -0
  13. package/dist/test/unit/argon2/browserArgon2Provider.test.js +96 -0
  14. package/dist/test/unit/argon2/browserArgon2Provider.test.js.map +1 -0
  15. package/dist/ts-web-extras-argon2.d.ts +40 -0
  16. package/dist/tsdoc-metadata.json +11 -0
  17. package/lib/index.d.ts +2 -0
  18. package/lib/index.d.ts.map +1 -0
  19. package/lib/index.js +26 -0
  20. package/lib/index.js.map +1 -0
  21. package/lib/packlets/argon2/browserArgon2Provider.d.ts +36 -0
  22. package/lib/packlets/argon2/browserArgon2Provider.d.ts.map +1 -0
  23. package/lib/packlets/argon2/browserArgon2Provider.js +92 -0
  24. package/lib/packlets/argon2/browserArgon2Provider.js.map +1 -0
  25. package/lib/packlets/argon2/index.d.ts +3 -0
  26. package/lib/packlets/argon2/index.d.ts.map +1 -0
  27. package/lib/packlets/argon2/index.js +29 -0
  28. package/lib/packlets/argon2/index.js.map +1 -0
  29. package/lib/test/unit/argon2/browserArgon2Provider.test.d.ts +2 -0
  30. package/lib/test/unit/argon2/browserArgon2Provider.test.d.ts.map +1 -0
  31. package/lib/test/unit/argon2/browserArgon2Provider.test.js +98 -0
  32. package/lib/test/unit/argon2/browserArgon2Provider.test.js.map +1 -0
  33. package/package.json +19 -19
  34. package/rush-logs/ts-web-extras-argon2.build.cache.log +3 -0
  35. package/rush-logs/ts-web-extras-argon2.build.log +9 -0
  36. package/temp/build/lint/_eslint-5eVG3S6w.json +22 -0
  37. package/temp/build/typescript/ts_8nwakTlr.json +1 -0
  38. package/temp/ts-web-extras-argon2.api.json +382 -0
  39. package/temp/ts-web-extras-argon2.api.md +20 -0
@@ -0,0 +1,42 @@
1
+ Start time: Tue May 19 2026 18:40:28 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -c -f /home/runner/work/fgv/fgv/common/temp/build-cache/84f4698424f6c0bcfb3eeaa50b47f3e82ab9c5a7-4d3fffdada12869c.temp -z --files-from=-"
3
+
4
+ ======= BEGIN PROCESS INPUT ======
5
+ .rush/temp/operation/build/all.log
6
+ .rush/temp/operation/build/log-chunks.jsonl
7
+ .rush/temp/operation/build/state.json
8
+ dist/index.js
9
+ dist/index.js.map
10
+ dist/packlets/argon2/browserArgon2Provider.js
11
+ dist/packlets/argon2/browserArgon2Provider.js.map
12
+ dist/packlets/argon2/index.js
13
+ dist/packlets/argon2/index.js.map
14
+ dist/test/unit/argon2/browserArgon2Provider.test.js
15
+ dist/test/unit/argon2/browserArgon2Provider.test.js.map
16
+ dist/ts-web-extras-argon2.d.ts
17
+ dist/tsdoc-metadata.json
18
+ lib/index.d.ts
19
+ lib/index.d.ts.map
20
+ lib/index.js
21
+ lib/index.js.map
22
+ lib/packlets/argon2/browserArgon2Provider.d.ts
23
+ lib/packlets/argon2/browserArgon2Provider.d.ts.map
24
+ lib/packlets/argon2/browserArgon2Provider.js
25
+ lib/packlets/argon2/browserArgon2Provider.js.map
26
+ lib/packlets/argon2/index.d.ts
27
+ lib/packlets/argon2/index.d.ts.map
28
+ lib/packlets/argon2/index.js
29
+ lib/packlets/argon2/index.js.map
30
+ lib/test/unit/argon2/browserArgon2Provider.test.d.ts
31
+ lib/test/unit/argon2/browserArgon2Provider.test.d.ts.map
32
+ lib/test/unit/argon2/browserArgon2Provider.test.js
33
+ lib/test/unit/argon2/browserArgon2Provider.test.js.map
34
+ temp/build/lint/_eslint-5eVG3S6w.json
35
+ temp/build/typescript/ts_8nwakTlr.json
36
+ temp/ts-web-extras-argon2.api.json
37
+ temp/ts-web-extras-argon2.api.md
38
+ ======== END PROCESS INPUT =======
39
+ ======= BEGIN PROCESS OUTPUT =======
40
+ ======== END PROCESS OUTPUT ========
41
+
42
+ Exited with code "0"
@@ -0,0 +1,9 @@
1
+ {"kind":"O","text":"Invoking: heft build --clean \n"}
2
+ {"kind":"O","text":" ---- build started ---- \n"}
3
+ {"kind":"O","text":"[build:typescript] The TypeScript compiler version 5.9.3 is newer than the latest version that was tested with Heft (5.8); it may not work correctly.\n"}
4
+ {"kind":"O","text":"[build:typescript] Using TypeScript version 5.9.3\n"}
5
+ {"kind":"O","text":"[build:lint] Using ESLint version 9.39.4\n"}
6
+ {"kind":"O","text":"[build:api-extractor] Using API Extractor version 7.58.7\n"}
7
+ {"kind":"O","text":"[build:api-extractor] Analysis will use the bundled TypeScript version 5.9.3\n"}
8
+ {"kind":"O","text":" ---- build finished (19.098s) ---- \n"}
9
+ {"kind":"O","text":"-------------------- Finished (19.102s) --------------------\n"}
@@ -0,0 +1,9 @@
1
+ Invoking: heft build --clean
2
+ ---- build started ----
3
+ [build:typescript] The TypeScript compiler version 5.9.3 is newer than the latest version that was tested with Heft (5.8); it may not work correctly.
4
+ [build:typescript] Using TypeScript version 5.9.3
5
+ [build:lint] Using ESLint version 9.39.4
6
+ [build:api-extractor] Using API Extractor version 7.58.7
7
+ [build:api-extractor] Analysis will use the bundled TypeScript version 5.9.3
8
+ ---- build finished (19.098s) ----
9
+ -------------------- Finished (19.102s) --------------------
@@ -0,0 +1,9 @@
1
+ {"kind":"O","text":"Invoking: heft build --clean \n"}
2
+ {"kind":"O","text":" ---- build started ---- \n"}
3
+ {"kind":"O","text":"[build:typescript] The TypeScript compiler version 5.9.3 is newer than the latest version that was tested with Heft (5.8); it may not work correctly.\n"}
4
+ {"kind":"O","text":"[build:typescript] Using TypeScript version 5.9.3\n"}
5
+ {"kind":"O","text":"[build:lint] Using ESLint version 9.39.4\n"}
6
+ {"kind":"O","text":"[build:api-extractor] Using API Extractor version 7.58.7\n"}
7
+ {"kind":"O","text":"[build:api-extractor] Analysis will use the bundled TypeScript version 5.9.3\n"}
8
+ {"kind":"O","text":" ---- build finished (19.098s) ---- \n"}
9
+ {"kind":"O","text":"-------------------- Finished (19.102s) --------------------\n"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "nonCachedDurationMs": 19955.520883999998
3
+ }
@@ -56,14 +56,14 @@
56
56
  "@istanbuljs/load-nyc-config@1.1.0": "@istanbuljs/load-nyc-config@1.1.0:+tylbO0guJzkDbovYDgbHxTUl8kcvrir2peVAz60F9g=:",
57
57
  "@istanbuljs/schema@0.1.6": "@istanbuljs/schema@0.1.6:kHUsJhhk+xYurqEbatAwNKyk2wIdJh5oEFxE+OA9lAI=:",
58
58
  "@jest/console@29.7.0": "@jest/console@29.7.0:TQRkf42vTpyRj6JKPw9BkdMha9I54trgb3XRAe32Pl0=:",
59
- "@jest/core@29.5.0(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3))": "@jest/core@29.5.0(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3)):V0zwu+VAbcIqksDeTe5n4d5ZTagkHAxWMk+ZDMS/d8s=:",
59
+ "@jest/core@29.5.0(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3))": "@jest/core@29.5.0(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3)):vfQwH98lHyFmOMKFwuLSUMu2oYc+jo7kNYES54VpHpM=:",
60
60
  "@jest/core@29.7.0(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3))": "@jest/core@29.7.0(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3)):b1NlQGJwtwPo53fIAa52W7sL74ntIH9Gd71zkNZjtQU=:",
61
61
  "@jest/environment@29.7.0": "@jest/environment@29.7.0:OccT6t+RUEze2pPv2096Z0ZxEfPR51vzs3/M92hG+lg=:",
62
62
  "@jest/expect-utils@29.7.0": "@jest/expect-utils@29.7.0:/5kYHU3SqucZ7ntrJG7Xb6LROYA/xdv03kWifxweOOE=:",
63
63
  "@jest/expect@29.7.0": "@jest/expect@29.7.0:5RHpcXNns1pWGTly3ZEOXwfx30hQaVIQ/8ZSq+ggjXI=:",
64
64
  "@jest/fake-timers@29.7.0": "@jest/fake-timers@29.7.0:JvLOwTWmr/YwC0klYOyunqcJz4R6q9PWAQ9QL6BQGXU=:",
65
65
  "@jest/globals@29.7.0": "@jest/globals@29.7.0:rn89P6vMp8c61OyeFehs6p5mXPyh1Mg7SlqmQWtTqnk=:",
66
- "@jest/reporters@29.5.0": "@jest/reporters@29.5.0:ZiTpAQdVIeEqE4kKPlJw5c+M6YeyZu1cxnKpzGXMKb0=:",
66
+ "@jest/reporters@29.5.0": "@jest/reporters@29.5.0:QAx67DoDgrmxGGeOO9XnaWpsolOsg2mf8YgGBlIjOhM=:",
67
67
  "@jest/reporters@29.7.0": "@jest/reporters@29.7.0:Tpczh4EpmTvIn/FN76ivA6tR31dNM++7NkS9J7dt4mE=:",
68
68
  "@jest/schemas@29.6.3": "@jest/schemas@29.6.3:k3bivx0mavN4Y4JNrlgZwLcSoyQrOCZXUXmIQ1Nsblc=:",
69
69
  "@jest/source-map@29.6.3": "@jest/source-map@29.6.3:YrWW+6HHLR2tfBDJ0S2FXQEQC+LRLZAxnV8EE+gaNkg=:",
@@ -157,8 +157,8 @@
157
157
  "@typescript-eslint/parser@8.56.1(eslint@9.37.0(jiti@2.7.0))(typescript@5.8.3)": "@typescript-eslint/parser@8.56.1(eslint@9.37.0(jiti@2.7.0))(typescript@5.8.3):gY3oJ8Qa8yQw9MilFm9zL330Ig+ihnjnAFKtjOpL+JM=:",
158
158
  "@typescript-eslint/parser@8.56.1(eslint@9.39.4(jiti@2.7.0))(typescript@5.9.3)": "@typescript-eslint/parser@8.56.1(eslint@9.39.4(jiti@2.7.0))(typescript@5.9.3):IObb8qC909jXqUvvc2AGU4SXIVCm64dC/YgeexZXn5k=:",
159
159
  "@typescript-eslint/parser@8.59.3(eslint@9.39.4(jiti@2.7.0))(typescript@5.9.3)": "@typescript-eslint/parser@8.59.3(eslint@9.39.4(jiti@2.7.0))(typescript@5.9.3):DWHVak7g3z8Gq6oXyoVHa09NFMm+1YrikFbi//bjj8I=:",
160
- "@typescript-eslint/project-service@8.56.1(typescript@5.8.3)": "@typescript-eslint/project-service@8.56.1(typescript@5.8.3):FfgcSYlXvtFZ/3N7mrxILyidaGkI2MvkdZFemEaPrlc=:",
161
- "@typescript-eslint/project-service@8.56.1(typescript@5.9.3)": "@typescript-eslint/project-service@8.56.1(typescript@5.9.3):rkrN1q21SxLWTf+VycNAkuMIJ6+fX1fKMfYYLvcugh0=:",
160
+ "@typescript-eslint/project-service@8.56.1(typescript@5.8.3)": "@typescript-eslint/project-service@8.56.1(typescript@5.8.3):L+l5gLoQs5jJA99jom0A+h+VN2ISYACSekXHA1c1EwI=:",
161
+ "@typescript-eslint/project-service@8.56.1(typescript@5.9.3)": "@typescript-eslint/project-service@8.56.1(typescript@5.9.3):GSD5sT6y3sR1zlsIgMPHy0OlPy4VfklleV3legIGWOs=:",
162
162
  "@typescript-eslint/project-service@8.59.3(typescript@5.9.3)": "@typescript-eslint/project-service@8.59.3(typescript@5.9.3):TdtQIDvh8U+Zg9ZhH+lSb++qqy5nbqa8kGNXmm0SjTs=:",
163
163
  "@typescript-eslint/scope-manager@8.56.1": "@typescript-eslint/scope-manager@8.56.1:oakiB4Lxz5IzduhJyobePnldPnbj+7aVEx2xiDKHndY=:",
164
164
  "@typescript-eslint/scope-manager@8.59.3": "@typescript-eslint/scope-manager@8.59.3:Ts9EflddW/+1TZMWGiBwaa+te9EFZTwTiltllXqs2fk=:",
@@ -186,9 +186,10 @@
186
186
  "acorn@8.16.0": "acorn@8.16.0:jUfpbMqUSWQXeMk9lBKufnFEiAXwmYW9Gyao55/YJG0=:",
187
187
  "agent-base@6.0.2": "agent-base@6.0.2:s+vm2vdDiTWD5EEK8YZUuCJ8nNJVPz+o/sVHEzuEw90=:",
188
188
  "ajv-draft-04@1.0.0(ajv@8.18.0)": "ajv-draft-04@1.0.0(ajv@8.18.0):JG8wTlojY/flM3PwHQclVQAYfj7Apf56biGgSdOawQA=:",
189
- "ajv-formats@3.0.1": "ajv-formats@3.0.1:UsGmpDGZlVReLuxRucUPL4JVD/HgxRGxNHwFFDT4HgQ=:",
189
+ "ajv-formats@3.0.1": "ajv-formats@3.0.1:7+hwYT+T7Wmw6jFzMzBm5dGWCyFLue4kddTc+2OQECA=:",
190
190
  "ajv@6.15.0": "ajv@6.15.0:SD87QJjJxWrlD9SUV0MTNqxBwRwf0xRmGzKqFBfAZSg=:",
191
191
  "ajv@8.18.0": "ajv@8.18.0:fTpbnLje6H+gfMLuSRWwe2Qp/VZ11RZHypBNhBPLmX8=:",
192
+ "ajv@8.20.0": "ajv@8.20.0:/ablYS+O64orF8yVeWOKxUDKBphSTMP9xnFhKylMYb0=:",
192
193
  "ansi-escapes@4.3.2": "ansi-escapes@4.3.2:krrUMjeesFpE6MS4Ii5hJdNFd3JYXKgtoieUIuY2ico=:",
193
194
  "ansi-regex@5.0.1": "ansi-regex@5.0.1:cbFbJn342lSe4Qm0qQ4VieLS/1iZGV2bhNms0khI14g=:",
194
195
  "ansi-styles@4.3.0": "ansi-styles@4.3.0:ZWSFBwfXYCdLBmX2ZXoVqBWX7sfMR5ZmhLs9Hyh39XY=:",
@@ -431,7 +432,7 @@
431
432
  "jest-changed-files@29.7.0": "jest-changed-files@29.7.0:oQS4ZWmXYqUwlExhMtgIYgDrwHDfmSOPex9x9R1BwUQ=:",
432
433
  "jest-circus@29.7.0": "jest-circus@29.7.0:yKDzkjQNELGCvKM8K1D/BYsyoDeetnFypU+2dKjWLrw=:",
433
434
  "jest-cli@29.7.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3))": "jest-cli@29.7.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3)):sid6fyxWeD2LmzsKeuE9ulLUfPuKWIe3mrX89qQvdUg=:",
434
- "jest-config@29.5.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3))": "jest-config@29.5.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3)):bdseYaXTdKR2bnqvvkKVkXc6oiy1i5XV15pv2y90AZI=:",
435
+ "jest-config@29.5.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3))": "jest-config@29.5.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3)):lS+QCqueeY8mS0Dqn36KKAbEXQEsDuU+i6KMbrKL/GQ=:",
435
436
  "jest-config@29.7.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3))": "jest-config@29.7.0(@types/node@20.19.41)(ts-node@10.9.2(@types/node@20.19.41)(typescript@5.9.3)):UT4Gi5l03YYG8sqOkmsIqMrvyBccuYh7Lb46SznLdO4=:",
436
437
  "jest-diff@29.7.0": "jest-diff@29.7.0:Ul5FBhhA/MnkZjU6Dat9uRuf6qcBfKMXWTGRugGLmDY=:",
437
438
  "jest-docblock@29.7.0": "jest-docblock@29.7.0:pvQX9Pr6W46Wv/xaMCwWM5f6zyR3WoTJC/YHcZu48HU=:",
@@ -453,7 +454,7 @@
453
454
  "jest-resolve@29.7.0": "jest-resolve@29.7.0:hvpSASO6uKsWu0SgUVZVsNF5S0LSrMpEb1G6FwvShKo=:",
454
455
  "jest-runner@29.7.0": "jest-runner@29.7.0:5+B6nV1nN59/Eg+IsyyAqFFiKLiMsiUc88cR+p1HE3U=:",
455
456
  "jest-runtime@29.7.0": "jest-runtime@29.7.0:nRTNmq97N5lDhQkiTdeeRwvDOtYleSbv0G0VPVt3q2Q=:",
456
- "jest-snapshot@29.5.0": "jest-snapshot@29.5.0:zd7GXLUt/VoNTVpYF5W2mQWcnrkmG1j1FHLm/4cjoHo=:",
457
+ "jest-snapshot@29.5.0": "jest-snapshot@29.5.0:QntNipgva8RvAs1Nhm45LPl5b2PU7nNaTd2XwI6Xwas=:",
457
458
  "jest-snapshot@29.7.0": "jest-snapshot@29.7.0:kggrREcar663ZeUts8W+NgpOyg8GFr1lEOh1Lj1SiUI=:",
458
459
  "jest-util@29.7.0": "jest-util@29.7.0:gHlcHPbEBD1XLvUIxS8pkftzVgiU9ELvAxf4UXScHRc=:",
459
460
  "jest-validate@29.7.0": "jest-validate@29.7.0:X0BFNNuaTkbRX14EvARv9uObBFs94o3bDjvhgzQqER4=:",
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ // Copyright (c) 2026 Erik Fortune
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in all
11
+ // copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ // SOFTWARE.
20
+ export { BrowserArgon2Provider, CryptoUtils } from './packlets/argon2';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nexport { BrowserArgon2Provider, CryptoUtils } from './packlets/argon2';\n"]}
@@ -0,0 +1,88 @@
1
+ // Copyright (c) 2026 Erik Fortune
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in all
11
+ // copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ // SOFTWARE.
20
+ import { argon2id } from 'hash-wasm';
21
+ import { captureAsyncResult, fail, succeed } from '@fgv/ts-utils';
22
+ /**
23
+ * Browser (and Node) implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by
24
+ * `hash-wasm` (pure WASM — no Web Crypto dependency). Runs identically in both Node and
25
+ * browser environments, enabling cross-runtime test equivalence.
26
+ * @public
27
+ */
28
+ export class BrowserArgon2Provider {
29
+ constructor() { }
30
+ /**
31
+ * Creates a new {@link BrowserArgon2Provider} instance.
32
+ * @returns Success with a new provider instance.
33
+ * @public
34
+ */
35
+ static create() {
36
+ return succeed(new BrowserArgon2Provider());
37
+ }
38
+ /**
39
+ * Derives a key using Argon2id via the hash-wasm WASM implementation.
40
+ *
41
+ * @remarks
42
+ * `hash-wasm` computes Argon2id sequentially regardless of the `parallelism` value —
43
+ * the WASM engine does not spawn worker threads. The `parallelism` value IS still wired
44
+ * into the hash computation; output bytes differ for different parallelism values.
45
+ * For interoperability with server-side Node derivations, ensure both sides use the same
46
+ * `parallelism` value (recommend `parallelism: 1` unless compatibility requires otherwise).
47
+ *
48
+ * @param password - The password or passphrase (string or raw bytes).
49
+ * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
50
+ * @param params - Argon2id parameters. All values are validated before derivation.
51
+ * @returns Success with the derived key bytes, or Failure with a descriptive message.
52
+ * @public
53
+ */
54
+ async argon2id(password, salt, params) {
55
+ const error = BrowserArgon2Provider._validateParams(params);
56
+ if (error !== undefined) {
57
+ return fail(error);
58
+ }
59
+ return captureAsyncResult(async () => {
60
+ const result = await argon2id({
61
+ password,
62
+ salt,
63
+ iterations: params.iterations,
64
+ parallelism: params.parallelism,
65
+ memorySize: params.memoryKiB,
66
+ hashLength: params.outputBytes,
67
+ outputType: 'binary'
68
+ });
69
+ return result;
70
+ });
71
+ }
72
+ static _validateParams(params) {
73
+ if (params.memoryKiB < 8) {
74
+ return `argon2id: memoryKiB must be >= 8, got ${params.memoryKiB}`;
75
+ }
76
+ if (params.iterations < 1) {
77
+ return `argon2id: iterations must be >= 1, got ${params.iterations}`;
78
+ }
79
+ if (params.parallelism < 1 || params.parallelism > 255) {
80
+ return `argon2id: parallelism must be 1..255, got ${params.parallelism}`;
81
+ }
82
+ if (params.outputBytes < 4) {
83
+ return `argon2id: outputBytes must be >= 4, got ${params.outputBytes}`;
84
+ }
85
+ return undefined;
86
+ }
87
+ }
88
+ //# sourceMappingURL=browserArgon2Provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserArgon2Provider.js","sourceRoot":"","sources":["../../../src/packlets/argon2/browserArgon2Provider.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AA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C,EAAE,CAAC;YACzB,OAAO,yCAAyC,MAAM,CAAC,SAAS,EAAE,CAAC;QACrE,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;YAC1B,OAAO,0CAA0C,MAAM,CAAC,UAAU,EAAE,CAAC;QACvE,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,GAAG,EAAE,CAAC;YACvD,OAAO,6CAA6C,MAAM,CAAC,WAAW,EAAE,CAAC;QAC3E,CAAC;QACD,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,EAAE,CAAC;YAC3B,OAAO,2CAA2C,MAAM,CAAC,WAAW,EAAE,CAAC;QACzE,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport { argon2id } from 'hash-wasm';\nimport { Result, captureAsyncResult, fail, succeed } from '@fgv/ts-utils';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n/**\n * Browser (and Node) implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by\n * `hash-wasm` (pure WASM — no Web Crypto dependency). Runs identically in both Node and\n * browser environments, enabling cross-runtime test equivalence.\n * @public\n */\nexport class BrowserArgon2Provider implements CryptoUtils.IArgon2idProvider {\n private constructor() {}\n\n /**\n * Creates a new {@link BrowserArgon2Provider} instance.\n * @returns Success with a new provider instance.\n * @public\n */\n public static create(): Result<BrowserArgon2Provider> {\n return succeed(new BrowserArgon2Provider());\n }\n\n /**\n * Derives a key using Argon2id via the hash-wasm WASM implementation.\n *\n * @remarks\n * `hash-wasm` computes Argon2id sequentially regardless of the `parallelism` value —\n * the WASM engine does not spawn worker threads. The `parallelism` value IS still wired\n * into the hash computation; output bytes differ for different parallelism values.\n * For interoperability with server-side Node derivations, ensure both sides use the same\n * `parallelism` value (recommend `parallelism: 1` unless compatibility requires otherwise).\n *\n * @param password - The password or passphrase (string or raw bytes).\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n * @param params - Argon2id parameters. All values are validated before derivation.\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n * @public\n */\n public async argon2id(\n password: Uint8Array | string,\n salt: Uint8Array,\n params: CryptoUtils.IArgon2idParams\n ): Promise<Result<Uint8Array>> {\n const error = BrowserArgon2Provider._validateParams(params);\n if (error !== undefined) {\n return fail(error);\n }\n\n return captureAsyncResult(async () => {\n const result = await argon2id({\n password,\n salt,\n iterations: params.iterations,\n parallelism: params.parallelism,\n memorySize: params.memoryKiB,\n hashLength: params.outputBytes,\n outputType: 'binary'\n });\n return result;\n });\n }\n\n private static _validateParams(params: CryptoUtils.IArgon2idParams): string | undefined {\n if (params.memoryKiB < 8) {\n return `argon2id: memoryKiB must be >= 8, got ${params.memoryKiB}`;\n }\n if (params.iterations < 1) {\n return `argon2id: iterations must be >= 1, got ${params.iterations}`;\n }\n if (params.parallelism < 1 || params.parallelism > 255) {\n return `argon2id: parallelism must be 1..255, got ${params.parallelism}`;\n }\n if (params.outputBytes < 4) {\n return `argon2id: outputBytes must be >= 4, got ${params.outputBytes}`;\n }\n return undefined;\n }\n}\n"]}
@@ -0,0 +1,24 @@
1
+ // Copyright (c) 2026 Erik Fortune
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in all
11
+ // copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ // SOFTWARE.
20
+ export { BrowserArgon2Provider } from './browserArgon2Provider';
21
+ // Re-export CryptoUtils namespace from ts-extras for consumer convenience
22
+ // (provides IArgon2idProvider, IArgon2idParams, ARGON2ID_OWASP_MIN, ARGON2ID_PASSPHRASE).
23
+ export { CryptoUtils } from '@fgv/ts-extras';
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packlets/argon2/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,0EAA0E;AAC1E,0FAA0F;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nexport { BrowserArgon2Provider } from './browserArgon2Provider';\n\n// Re-export CryptoUtils namespace from ts-extras for consumer convenience\n// (provides IArgon2idProvider, IArgon2idParams, ARGON2ID_OWASP_MIN, ARGON2ID_PASSPHRASE).\nexport { CryptoUtils } from '@fgv/ts-extras';\n"]}
@@ -0,0 +1,96 @@
1
+ // Copyright (c) 2026 Erik Fortune
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in all
11
+ // copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ // SOFTWARE.
20
+ import '@fgv/ts-utils-jest';
21
+ import { BrowserArgon2Provider } from '../../../packlets/argon2';
22
+ // RFC 9106 §B.3 parameter set (no secret/AD — our interface does not expose those fields).
23
+ // t=3, m=32, p=4, tag=32. Used for determinism and cross-runtime agreement.
24
+ const RFC_PARAMS = {
25
+ memoryKiB: 32,
26
+ iterations: 3,
27
+ parallelism: 4,
28
+ outputBytes: 32
29
+ };
30
+ const RFC_PASSWORD = new Uint8Array(32).fill(0x01);
31
+ const RFC_SALT = new Uint8Array(16).fill(0x02);
32
+ describe('BrowserArgon2Provider', () => {
33
+ let provider;
34
+ beforeEach(() => {
35
+ provider = BrowserArgon2Provider.create().orThrow();
36
+ });
37
+ describe('create()', () => {
38
+ test('returns a provider instance', () => {
39
+ expect(BrowserArgon2Provider.create()).toSucceedAndSatisfy((p) => {
40
+ expect(p).toBeInstanceOf(BrowserArgon2Provider);
41
+ });
42
+ });
43
+ });
44
+ describe('argon2id()', () => {
45
+ test('derives a key with Uint8Array password', async () => {
46
+ expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {
47
+ expect(bytes).toBeInstanceOf(Uint8Array);
48
+ expect(bytes.length).toBe(RFC_PARAMS.outputBytes);
49
+ });
50
+ });
51
+ test('derives a key with string password', async () => {
52
+ expect(await provider.argon2id('password', RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {
53
+ expect(bytes).toBeInstanceOf(Uint8Array);
54
+ expect(bytes.length).toBe(RFC_PARAMS.outputBytes);
55
+ });
56
+ });
57
+ test('is deterministic — same inputs produce identical bytes', async () => {
58
+ const r1 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
59
+ const r2 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();
60
+ expect(r1).toEqual(r2);
61
+ });
62
+ test('different passwords produce different bytes', async () => {
63
+ const a = (await provider.argon2id(new Uint8Array(32).fill(0x01), RFC_SALT, RFC_PARAMS)).orThrow();
64
+ const b = (await provider.argon2id(new Uint8Array(32).fill(0x02), RFC_SALT, RFC_PARAMS)).orThrow();
65
+ expect(a).not.toEqual(b);
66
+ });
67
+ test('different salts produce different bytes', async () => {
68
+ const a = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x02), RFC_PARAMS)).orThrow();
69
+ const b = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x03), RFC_PARAMS)).orThrow();
70
+ expect(a).not.toEqual(b);
71
+ });
72
+ test('respects outputBytes', async () => {
73
+ expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { outputBytes: 64 }))).toSucceedAndSatisfy((bytes) => {
74
+ expect(bytes.length).toBe(64);
75
+ });
76
+ });
77
+ });
78
+ describe('parameter validation', () => {
79
+ test('fails when memoryKiB < 8', async () => {
80
+ expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { memoryKiB: 7 }))).toFailWith(/memoryKiB must be >= 8/i);
81
+ });
82
+ test('fails when iterations < 1', async () => {
83
+ expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { iterations: 0 }))).toFailWith(/iterations must be >= 1/i);
84
+ });
85
+ test('fails when parallelism < 1', async () => {
86
+ expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { parallelism: 0 }))).toFailWith(/parallelism must be 1\.\.255/i);
87
+ });
88
+ test('fails when parallelism > 255', async () => {
89
+ expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { parallelism: 256 }))).toFailWith(/parallelism must be 1\.\.255/i);
90
+ });
91
+ test('fails when outputBytes < 4', async () => {
92
+ expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, Object.assign(Object.assign({}, RFC_PARAMS), { outputBytes: 3 }))).toFailWith(/outputBytes must be >= 4/i);
93
+ });
94
+ });
95
+ });
96
+ //# sourceMappingURL=browserArgon2Provider.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserArgon2Provider.test.js","sourceRoot":"","sources":["../../../../src/test/unit/argon2/browserArgon2Provider.test.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;AAEZ,OAAO,oBAAoB,CAAC;AAC5B,O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AAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,SAAS,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CACjG,yBAAyB,CAC1B,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;YAC3C,MAAM,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,UAAU,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CAClG,0BAA0B,CAC3B,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CACnG,+BAA+B,CAChC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;YAC9C,MAAM,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,GAAG,IAAG,CAAC,CAAC,UAAU,CACrG,+BAA+B,CAChC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,kCAAO,UAAU,KAAE,WAAW,EAAE,CAAC,IAAG,CAAC,CAAC,UAAU,CACnG,2BAA2B,CAC5B,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport '@fgv/ts-utils-jest';\nimport { BrowserArgon2Provider } from '../../../packlets/argon2';\nimport { CryptoUtils } from '@fgv/ts-extras';\n\n// RFC 9106 §B.3 parameter set (no secret/AD — our interface does not expose those fields).\n// t=3, m=32, p=4, tag=32. Used for determinism and cross-runtime agreement.\nconst RFC_PARAMS: CryptoUtils.IArgon2idParams = {\n memoryKiB: 32,\n iterations: 3,\n parallelism: 4,\n outputBytes: 32\n};\nconst RFC_PASSWORD = new Uint8Array(32).fill(0x01);\nconst RFC_SALT = new Uint8Array(16).fill(0x02);\n\ndescribe('BrowserArgon2Provider', () => {\n let provider: BrowserArgon2Provider;\n\n beforeEach(() => {\n provider = BrowserArgon2Provider.create().orThrow();\n });\n\n describe('create()', () => {\n test('returns a provider instance', () => {\n expect(BrowserArgon2Provider.create()).toSucceedAndSatisfy((p) => {\n expect(p).toBeInstanceOf(BrowserArgon2Provider);\n });\n });\n });\n\n describe('argon2id()', () => {\n test('derives a key with Uint8Array password', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('derives a key with string password', async () => {\n expect(await provider.argon2id('password', RFC_SALT, RFC_PARAMS)).toSucceedAndSatisfy((bytes) => {\n expect(bytes).toBeInstanceOf(Uint8Array);\n expect(bytes.length).toBe(RFC_PARAMS.outputBytes);\n });\n });\n\n test('is deterministic — same inputs produce identical bytes', async () => {\n const r1 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n const r2 = (await provider.argon2id(RFC_PASSWORD, RFC_SALT, RFC_PARAMS)).orThrow();\n expect(r1).toEqual(r2);\n });\n\n test('different passwords produce different bytes', async () => {\n const a = (await provider.argon2id(new Uint8Array(32).fill(0x01), RFC_SALT, RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(new Uint8Array(32).fill(0x02), RFC_SALT, RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('different salts produce different bytes', async () => {\n const a = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x02), RFC_PARAMS)).orThrow();\n const b = (await provider.argon2id(RFC_PASSWORD, new Uint8Array(16).fill(0x03), RFC_PARAMS)).orThrow();\n expect(a).not.toEqual(b);\n });\n\n test('respects outputBytes', async () => {\n expect(\n await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 64 })\n ).toSucceedAndSatisfy((bytes) => {\n expect(bytes.length).toBe(64);\n });\n });\n });\n\n describe('parameter validation', () => {\n test('fails when memoryKiB < 8', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, memoryKiB: 7 })).toFailWith(\n /memoryKiB must be >= 8/i\n );\n });\n\n test('fails when iterations < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, iterations: 0 })).toFailWith(\n /iterations must be >= 1/i\n );\n });\n\n test('fails when parallelism < 1', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 0 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when parallelism > 255', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, parallelism: 256 })).toFailWith(\n /parallelism must be 1\\.\\.255/i\n );\n });\n\n test('fails when outputBytes < 4', async () => {\n expect(await provider.argon2id(RFC_PASSWORD, RFC_SALT, { ...RFC_PARAMS, outputBytes: 3 })).toFailWith(\n /outputBytes must be >= 4/i\n );\n });\n });\n});\n"]}
@@ -0,0 +1,40 @@
1
+ import { CryptoUtils } from '@fgv/ts-extras';
2
+ import { Result } from '@fgv/ts-utils';
3
+
4
+ /**
5
+ * Browser (and Node) implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by
6
+ * `hash-wasm` (pure WASM — no Web Crypto dependency). Runs identically in both Node and
7
+ * browser environments, enabling cross-runtime test equivalence.
8
+ * @public
9
+ */
10
+ export declare class BrowserArgon2Provider implements CryptoUtils.IArgon2idProvider {
11
+ private constructor();
12
+ /**
13
+ * Creates a new {@link BrowserArgon2Provider} instance.
14
+ * @returns Success with a new provider instance.
15
+ * @public
16
+ */
17
+ static create(): Result<BrowserArgon2Provider>;
18
+ /**
19
+ * Derives a key using Argon2id via the hash-wasm WASM implementation.
20
+ *
21
+ * @remarks
22
+ * `hash-wasm` computes Argon2id sequentially regardless of the `parallelism` value —
23
+ * the WASM engine does not spawn worker threads. The `parallelism` value IS still wired
24
+ * into the hash computation; output bytes differ for different parallelism values.
25
+ * For interoperability with server-side Node derivations, ensure both sides use the same
26
+ * `parallelism` value (recommend `parallelism: 1` unless compatibility requires otherwise).
27
+ *
28
+ * @param password - The password or passphrase (string or raw bytes).
29
+ * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
30
+ * @param params - Argon2id parameters. All values are validated before derivation.
31
+ * @returns Success with the derived key bytes, or Failure with a descriptive message.
32
+ * @public
33
+ */
34
+ argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams): Promise<Result<Uint8Array>>;
35
+ private static _validateParams;
36
+ }
37
+
38
+ export { CryptoUtils }
39
+
40
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.58.7"
9
+ }
10
+ ]
11
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { BrowserArgon2Provider, CryptoUtils } from './packlets/argon2';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // Copyright (c) 2026 Erik Fortune
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.CryptoUtils = exports.BrowserArgon2Provider = void 0;
23
+ var argon2_1 = require("./packlets/argon2");
24
+ Object.defineProperty(exports, "BrowserArgon2Provider", { enumerable: true, get: function () { return argon2_1.BrowserArgon2Provider; } });
25
+ Object.defineProperty(exports, "CryptoUtils", { enumerable: true, get: function () { return argon2_1.CryptoUtils; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;AAEZ,4CAAuE;AAA9D,+GAAA,qBAAqB,OAAA;AAAE,qGAAA,WAAW,OAAA","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nexport { BrowserArgon2Provider, CryptoUtils } from './packlets/argon2';\n"]}
@@ -0,0 +1,36 @@
1
+ import { Result } from '@fgv/ts-utils';
2
+ import { CryptoUtils } from '@fgv/ts-extras';
3
+ /**
4
+ * Browser (and Node) implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by
5
+ * `hash-wasm` (pure WASM — no Web Crypto dependency). Runs identically in both Node and
6
+ * browser environments, enabling cross-runtime test equivalence.
7
+ * @public
8
+ */
9
+ export declare class BrowserArgon2Provider implements CryptoUtils.IArgon2idProvider {
10
+ private constructor();
11
+ /**
12
+ * Creates a new {@link BrowserArgon2Provider} instance.
13
+ * @returns Success with a new provider instance.
14
+ * @public
15
+ */
16
+ static create(): Result<BrowserArgon2Provider>;
17
+ /**
18
+ * Derives a key using Argon2id via the hash-wasm WASM implementation.
19
+ *
20
+ * @remarks
21
+ * `hash-wasm` computes Argon2id sequentially regardless of the `parallelism` value —
22
+ * the WASM engine does not spawn worker threads. The `parallelism` value IS still wired
23
+ * into the hash computation; output bytes differ for different parallelism values.
24
+ * For interoperability with server-side Node derivations, ensure both sides use the same
25
+ * `parallelism` value (recommend `parallelism: 1` unless compatibility requires otherwise).
26
+ *
27
+ * @param password - The password or passphrase (string or raw bytes).
28
+ * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).
29
+ * @param params - Argon2id parameters. All values are validated before derivation.
30
+ * @returns Success with the derived key bytes, or Failure with a descriptive message.
31
+ * @public
32
+ */
33
+ argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams): Promise<Result<Uint8Array>>;
34
+ private static _validateParams;
35
+ }
36
+ //# sourceMappingURL=browserArgon2Provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserArgon2Provider.d.ts","sourceRoot":"","sources":["../../../src/packlets/argon2/browserArgon2Provider.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAqC,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,qBAAsB,YAAW,WAAW,CAAC,iBAAiB;IACzE,OAAO;IAEP;;;;OAIG;WACW,MAAM,IAAI,MAAM,CAAC,qBAAqB,CAAC;IAIrD;;;;;;;;;;;;;;;OAeG;IACU,QAAQ,CACnB,QAAQ,EAAE,UAAU,GAAG,MAAM,EAC7B,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,WAAW,CAAC,eAAe,GAClC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAoB9B,OAAO,CAAC,MAAM,CAAC,eAAe;CAe/B"}