{"_id":"@3xpo/argon2","_rev":"1-469658041d52fe074ceca8eb5bbf4f05","name":"@3xpo/argon2","dist-tags":{"latest":"0.0.0","nightly":"0.31.3-nightly-2023.12.22-1"},"versions":{"0.0.0":{"name":"@3xpo/argon2","version":"0.0.0","description":"An Argon2 library for Node","keywords":["argon2","crypto","encryption","hashing","password"],"homepage":"https://github.com/Exponential-Workload/node-argon2#readme","bugs":{"url":"https://github.com/Exponential-Workload/node-argon2/issues"},"repository":{"type":"git","url":"git+https://github.com/Exponential-Workload/node-argon2.git"},"license":"MIT","author":{"name":"Ranieri Althoff","email":"ranisalt+argon2@gmail.com"},"type":"module","main":"dist/argon2.js","module":"dist/argon2.js","types":"dist/argon2.d.ts","binary":{"napi_versions":[8]},"dependencies":{"@phc/format":"^1.0.0","node-addon-api":"^7.0.0","node-gyp-build":"^4.7.1"},"devDependencies":{"@types/node":"^20.10.5","concurrently":"^8.2.2","esbuild":"^0.19.10","node-gyp":"^10.0.1","prebuildify":"^5.0.1","prettier":"^3.1.1","typescript":"^5.3.3"},"engines":{"node":">=16.17.0"},"collective":{"type":"opencollective","url":"https://opencollective.com/node-argon2"},"scripts":{"build":"prebuildify --napi --strip --tag-armv --tag-libc","format":"prettier --write \"*.{json,mjs}\"","install":"node-gyp-build","test":"node --test test.mjs"},"_id":"@3xpo/argon2@0.0.0","_integrity":"sha512-zPeVg0s8fE2tWgKUJA5I6mWjUvA6nEZYb2nRNWaNxdc3KGCR8LExyUk7mJ6nyDoAiA13HHG+pc8yQz219/Lovg==","_resolved":"/tmp/3c2d19e4bdfff9acf1a8ba8710b890fb/3xpo-argon2-0.0.0.tgz","_from":"file:3xpo-argon2-0.0.0.tgz","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-zPeVg0s8fE2tWgKUJA5I6mWjUvA6nEZYb2nRNWaNxdc3KGCR8LExyUk7mJ6nyDoAiA13HHG+pc8yQz219/Lovg==","shasum":"b764e7f8bc1ed33a94a518a742166842ff6d752f","tarball":"https://registry.npmjs.org/@3xpo/argon2/-/argon2-0.0.0.tgz","fileCount":26,"unpackedSize":245659,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzWT7Dvp5e3mr7JoyWOfQrLdu8WAWZAESOxpBqF5Sd6gIhAIRUqwUAVF3b0fOI++nkyCMgwTxS2SKiQsE4P06V/5Ij"}]},"_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"directories":{},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argon2_0.0.0_1703227220796_0.35243371754335606"},"_hasShrinkwrap":false},"0.31.3-nightly-2023.12.22-1":{"name":"@3xpo/argon2","version":"0.31.3-nightly-2023.12.22-1","description":"An Argon2 library for Node","keywords":["argon2","crypto","encryption","hashing","password"],"homepage":"https://github.com/Exponential-Workload/node-argon2#readme","bugs":{"url":"https://github.com/Exponential-Workload/node-argon2/issues"},"repository":{"type":"git","url":"git+https://github.com/Exponential-Workload/node-argon2.git"},"license":"MIT","author":{"name":"Ranieri Althoff","email":"ranisalt+argon2@gmail.com"},"type":"module","main":"dist/argon2.js","module":"dist/argon2.js","types":"dist/argon2.d.ts","binary":{"napi_versions":[8]},"scripts":{"build":"prebuildify --napi --strip --tag-armv --tag-libc","format":"prettier --write \"*.{json,mjs}\"","install":"node-gyp-build","prepack":"yarn prepare","prepare":"concurrently \"tsc\" \"esbuild src/argon2.ts --outfile=dist/argon2.js --packages=external --bundle --format=esm\"","test":"node --test test.mjs"},"dependencies":{"@phc/format":"^1.0.0","node-addon-api":"^7.0.0","node-gyp-build":"^4.7.1"},"devDependencies":{"@types/node":"^20.10.5","concurrently":"^8.2.2","esbuild":"^0.19.10","node-gyp":"^10.0.1","prebuildify":"^5.0.1","prettier":"^3.1.1","typescript":"^5.3.3"},"engines":{"node":">=16.17.0"},"collective":{"type":"opencollective","url":"https://opencollective.com/node-argon2"},"_id":"@3xpo/argon2@0.31.3-nightly-2023.12.22-1","readme":"# node-argon2\n\n[![Financial contributors on Open Collective][opencollective-image]][opencollective-url]\n[![Build status][actions-image]][actions-url]\n[![NPM package][npm-image]][npm-url]\n\nBindings to the reference [Argon2](https://github.com/P-H-C/phc-winner-argon2)\nimplementation.\n\n**Want to use it on the command line? Instead check\n[node-argon2-cli](https://github.com/ranisalt/node-argon2-cli).**\n\n## Usage\nIt's possible to hash using either Argon2i, Argon2d or Argon2id (default), and\nverify if a password matches a hash.\n\nTo hash a password:\n```js\nconst argon2 = require('argon2');\n\ntry {\n  const hash = await argon2.hash(\"password\");\n} catch (err) {\n  //...\n}\n```\n\nTo see how you can modify the output (hash length, encoding) and parameters\n(time cost, memory cost and parallelism),\n[read the wiki](https://github.com/ranisalt/node-argon2/wiki/Options)\n\nTo verify a password:\n```js\ntry {\n  if (await argon2.verify(\"<big long hash>\", \"password\")) {\n    // password match\n  } else {\n    // password did not match\n  }\n} catch (err) {\n  // internal failure\n}\n```\n\n### Migrating from another hash function\nSee [this article on the wiki](https://github.com/ranisalt/node-argon2/wiki/Migrating-from-another-hash-function) for steps on how to migrate your existing code to Argon2. It's easy!\n\n### TypeScript usage\nA TypeScript type declaration file is published with this module. If you are\nusing TypeScript 2.0.0 or later, that means you do not need to install any\nadditional typings in order to get access to the strongly typed interface.\nSimply use the library as mentioned above.\n\n```ts\nimport * as argon2 from \"argon2\";\n\nconst hash = await argon2.hash(..);\n```\n\n## Prebuilt binaries\n**node-argon2** provides prebuilt binaries from `v0.26.0` onwards. They are\nbuilt every release using GitHub Actions.\n\nThe current prebuilt binaries are built and tested with the following systems:\n- Ubuntu 20.04 (x86-64; ARM64 from v0.28.2)\n- MacOS 11 (x86-64)\n- MacOS 12 (ARM64 from v0.29.0)\n- Windows Server 2019 (x86-64)\n- Alpine Linux 3.18 (x86-64 from v0.28.1; ARM64 from v0.28.2)\n- FreeBSD 14 (x86-64 from v0.29.1)\n\nBinaries should also work for any version more recent than the ones listed\nabove. For example, the binary for Ubuntu 20.04 also works on Ubuntu 22.04, or\nany other Linux system that ships a newer version of glibc; the binary for\nMacOS 11 also works on MacOS 12. If your platform is below the above\nrequirements, you can follow the [Before installing](#before-installing)\nsection below to manually compile from source. It is also always recommended to\nbuild from source to ensure consistency of the compiled module.\n\n## Before installing\n*You can skip this section if the [prebuilt binaries](#prebuilt-binaries) work for you.*\n\nYou **MUST** have a **node-gyp** global install before proceeding with the install,\nalong with GCC >= 5 / Clang >= 3.3. On Windows, you must compile under Visual\nStudio 2015 or newer.\n\n**node-argon2** works only and is tested against Node >=18.0.0.\n\n### OSX\nTo install GCC >= 5 on OSX, use [homebrew](http://brew.sh/):\n```console\n$ brew install gcc\n```\n\nOnce you've got GCC installed and ready to run, you then need to install\nnode-gyp, you must do this globally:\n```console\n$ npm install -g node-gyp\n```\n\nFinally, once node-gyp is installed and ready to go, you can install this\nlibrary, specifying the GCC or Clang binary to use:\n\n```console\n$ CXX=g++-12 npm install argon2\n```\n\n**NOTE**: If your GCC or Clang binary is named something different than `g++-12`,\nyou'll need to specify that in the command.\n\n## FAQ\n<details>\n  <summary>How do I manually rebuild the binaries?</summary>\n\n  ```bash\n  $ npx @mapbox/node-pre-gyp rebuild -C ./node_modules/argon2\n  ```\n\n  Run `@mapbox/node-pre-gyp` instead of `node-gyp` because node-argon2's\n  `binding.gyp` file relies on variables from `@mapbox/node-pre-gyp`.\n\n  You can omit `npx @mapbox` and use just `node-pre-gyp` if you have a global\n  installation of `@mapbox/node-pre-gyp`, otherwise prefixing `npx` will use\n  the local one in `./node_modules/.bin`\n</details>\n\n<details>\n  <summary>\n    How do I skip installing prebuilt binaries and manually compile from source?\n  </summary>\n\n  You can do either of the two methods below:\n\n  1. Force build from source on install.\n  ```bash\n  $ npm install argon2 --build-from-source\n  ```\n\n  2. Ignore `node-argon2` install script and build manually.\n  ```bash\n  $ npm install argon2 --ignore-scripts\n  $ npx @mapbox/node-pre-gyp rebuild -C ./node_modules/argon2\n  ```\n</details>\n\n<details>\n  <summary>\n    I installed Node as a <a href=\"https://snapcraft.io/node\">snap</a>, and I can't install node-argon2.\n  </summary>\n\n  This seems to be an issue related to snap (see [#345 (comment)](https://github.com/ranisalt/node-argon2/issues/345#issuecomment-1164178674)). Installing Node with another package manager, such as [asdf](https://asdf-vm.com/) or [nvm](https://github.com/nvm-sh/nvm), is a possible workaround.\n</details>\n\n### Differences from [node-argon2-ffi](https://github.com/cjlarose/argon2-ffi)\nThe interface of both are very similar, notably, node-argon2-ffi splits the\nargon2i and argon2d function set, but this module also has the argon2id option,\nwhich node-argon2-ffi **does not support**.  Also, while node-argon2-ffi\nsuggests you promisify `crypto.randomBytes`, node-argon2 library does that\ninternally.\n\n**node-argon2** is much lighter than **node-argon2-ffi**, at 184 KB for\nargon2@0.29.1 against 2.56 MB for argon2-ffi@1.2.0. Performance-wise, the\nlibraries are equal. You can run the same benchmark suite if you are curious,\nbut both can perform around 130 hashes/second on an Intel Core i5-4460 @ 3.2GHz\nwith default options.\n\nThis library is implemented natively, meaning it is an extension to the node\nengine. Thus, half of the code is C++ bindings, the other half is Javascript\nfunctions. node-argon2-ffi uses ffi, a mechanism to call functions from one\nlanguage in another, and handles the type bindings (e.g. JS Number -> C++ int).\n\n## Contributors\n\n### Code contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n<a href=\"https://github.com/ranisalt/node-argon2/graphs/contributors\"><img src=\"https://opencollective.com/node-argon2/contributors.svg?width=890&button=false\" /></a>\n\n### Financial contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/node-argon2/contribute)]\n\n#### Individuals\n\n<a href=\"https://opencollective.com/node-argon2\"><img src=\"https://opencollective.com/node-argon2/individuals.svg?width=890\"></a>\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/node-argon2/contribute)]\n\n<a href=\"https://opencollective.com/node-argon2/organization/0/website\"><img src=\"https://opencollective.com/node-argon2/organization/0/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/1/website\"><img src=\"https://opencollective.com/node-argon2/organization/1/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/2/website\"><img src=\"https://opencollective.com/node-argon2/organization/2/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/3/website\"><img src=\"https://opencollective.com/node-argon2/organization/3/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/4/website\"><img src=\"https://opencollective.com/node-argon2/organization/4/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/5/website\"><img src=\"https://opencollective.com/node-argon2/organization/5/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/6/website\"><img src=\"https://opencollective.com/node-argon2/organization/6/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/7/website\"><img src=\"https://opencollective.com/node-argon2/organization/7/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/8/website\"><img src=\"https://opencollective.com/node-argon2/organization/8/avatar.svg\"></a>\n<a href=\"https://opencollective.com/node-argon2/organization/9/website\"><img src=\"https://opencollective.com/node-argon2/organization/9/avatar.svg\"></a>\n\n## License\nWork licensed under the [MIT License](LICENSE). Please check\n[P-H-C/phc-winner-argon2](https://github.com/P-H-C/phc-winner-argon2) for\nlicense over Argon2 and the reference implementation.\n\n[opencollective-image]: https://img.shields.io/opencollective/all/node-argon2.svg?style=flat-square\n[opencollective-url]: https://opencollective.com/node-argon2\n[npm-image]: https://img.shields.io/npm/v/argon2.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/argon2\n[actions-image]: https://img.shields.io/github/actions/workflow/status/ranisalt/node-argon2/ci.yml?branch=master&style=flat-square\n[actions-url]: https://github.com/ranisalt/node-argon2/actions\n","readmeFilename":"README.md","gitHead":"03e28199c3606f6b500e3f9b8e9964763c6ad204","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-tcQqwGr5OiNaHDu8wuQ81BZsobL3xKOhY2vdw/2dvWK1QfmxiY3JZwcclGPbQCrk5V0aetPvgqIMUdfkEVzDfw==","shasum":"abef073c3dc1126b19adc8ec3fe89f748f8214ec","tarball":"https://registry.npmjs.org/@3xpo/argon2/-/argon2-0.31.3-nightly-2023.12.22-1.tgz","fileCount":33,"unpackedSize":743573,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9YAG/nRjby3OrtVam/FPBT+LTHbmUNTfio2/CeX3v+wIgQsueow73o+xcI1ykTXKIqrYCxCL45ZNIFqqbByyglak="}]},"_npmUser":{"name":"exponentialworkload","email":"cc@aaathats3as.com"},"directories":{},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/argon2_0.31.3-nightly-2023.12.22-1_1703269085571_0.21443749389601474"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-22T06:40:20.691Z","0.0.0":"2023-12-22T06:40:21.028Z","modified":"2023-12-22T18:18:06.020Z","0.31.3-nightly-2023.12.22-1":"2023-12-22T18:18:05.803Z"},"maintainers":[{"name":"exponentialworkload","email":"cc@aaathats3as.com"}],"description":"An Argon2 library for Node","homepage":"https://github.com/Exponential-Workload/node-argon2#readme","keywords":["argon2","crypto","encryption","hashing","password"],"repository":{"type":"git","url":"git+https://github.com/Exponential-Workload/node-argon2.git"},"author":{"name":"Ranieri Althoff","email":"ranisalt+argon2@gmail.com"},"bugs":{"url":"https://github.com/Exponential-Workload/node-argon2/issues"},"license":"MIT","readme":"","readmeFilename":""}