Comparing version 0.27.0 to 0.27.1
{ | ||
"name": "argon2", | ||
"version": "0.27.0", | ||
"version": "0.27.1", | ||
"description": "An Argon2 library for Node", | ||
@@ -51,14 +51,14 @@ "main": "argon2.js", | ||
"@phc/format": "^1.0.0", | ||
"node-addon-api": "^3.0.0", | ||
"node-pre-gyp": "^0.15.0", | ||
"node-addon-api": "^3.0.2", | ||
"node-pre-gyp": "^0.17.0", | ||
"opencollective-postinstall": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.0.27", | ||
"@types/node": "^14.14.12", | ||
"coveralls": "^3.1.0", | ||
"mocha": "^8.1.1", | ||
"node-gyp": "^7.1.0", | ||
"mocha": "^8.2.1", | ||
"node-gyp": "^7.1.2", | ||
"nyc": "^15.1.0", | ||
"standard": "^14.3.4", | ||
"typescript": "^3.9.7" | ||
"standard": "^16.0.3", | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -65,0 +65,0 @@ "binary": { |
@@ -84,2 +84,14 @@ # node-argon2 | ||
### Differences from [node-argon2-ffi](https://github.com/cjlarose/argon2-ffi) | ||
The interface of both are very similar, notably node-argon2-ffi splits the | ||
argon2i and argon2d function set, but this module also has the argon2id option, | ||
which node-argon2-ffi **does not support**. Also, while node-argon2-ffi | ||
suggests you promisify `crypto.randomBytes`, node-argon2 library does that | ||
internally. | ||
**node-argon2** is much lighter than **node-argon2-ffi**, at 184 KB for | ||
argon2@0.27.0 against 2.56 MB for argon2-ffi@1.2.0. Performance-wise, the | ||
libraries are equal. You can run the same benchmark suite if you are curious, | ||
but both can perform around 130 hashes/second on an Intel Core i5-4460 @ 3.2GHz | ||
with default options. | ||
This library is implemented natively, meaning it is an extension to the node | ||
@@ -90,11 +102,2 @@ engine. Thus, half of the code are C++ bindings, the other half are Javascript | ||
The interface of both are very similar, notably node-argon2-ffi splits the | ||
argon2i and argon2d function set, but this module also has the argon2id option. | ||
Also, while node-argon2-ffi suggests you promisify `crypto.randomBytes`, this | ||
library does that internally. | ||
Performance-wise, the libraries are equal. You can run the same benchmark suite | ||
if you are curious, but both can perform around 130 hashes/second on an Intel | ||
Core i5-4460 @ 3.2GHz with default options. | ||
### Prebuilt Binaries | ||
@@ -213,3 +216,3 @@ **node-argon2** provides prebuilt binaries from `v0.26.0` onwards. They are | ||
[opencollective-image]: https://opencollective.com/node-argon2/all/badge.svg?label=financial+contributors | ||
[opencollective-image]: https://img.shields.io/opencollective/all/node-argon2.svg?style=flat-square | ||
[opencollective-url]: https://opencollective.com/node-argon2 | ||
@@ -216,0 +219,0 @@ [npm-image]: https://img.shields.io/npm/v/argon2.svg?style=flat-square |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184238
226
+ Addednode-pre-gyp@0.17.0(transitive)
- Removednode-pre-gyp@0.15.0(transitive)
Updatednode-addon-api@^3.0.2
Updatednode-pre-gyp@^0.17.0