Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

argon2

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

argon2 - npm Package Compare versions

Comparing version 0.28.5 to 0.28.7

29

argon2.js

@@ -6,12 +6,8 @@ "use strict";

const {
hash: _hash,
limits,
types,
names,
version,
} = require("./lib/binding/napi-v3/argon2.node");
const { hash: _hash } = require("./lib/binding/napi-v3/argon2.node");
const { deserialize, serialize } = require("@phc/format");
const types = Object.freeze({ argon2d: 0, argon2i: 1, argon2id: 2 });
const defaults = Object.freeze({

@@ -23,6 +19,19 @@ hashLength: 32,

parallelism: 1,
type: types.argon2i,
version,
type: types.argon2id,
version: 0x13,
});
const limits = Object.freeze({
hashLength: { min: 4, max: 2 ** 32 - 1 },
memoryCost: { min: 1 << 10, max: 2 ** 32 - 1 },
timeCost: { min: 2, max: 2 ** 32 - 1 },
parallelism: { min: 1, max: 2 ** 24 - 1 },
});
const names = Object.freeze({
[types.argon2d]: "argon2d",
[types.argon2i]: "argon2i",
[types.argon2id]: "argon2id",
});
const bindingsHash = promisify(_hash);

@@ -85,3 +94,3 @@ const generateSalt = promisify(randomBytes);

if (!(obj.id in types)) {
return false;
return false;
}

@@ -88,0 +97,0 @@

{
"name": "argon2",
"version": "0.28.5",
"version": "0.28.7",
"description": "An Argon2 library for Node",

@@ -49,13 +49,13 @@ "main": "argon2.js",

"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.8",
"@mapbox/node-pre-gyp": "^1.0.9",
"@phc/format": "^1.0.0",
"node-addon-api": "^4.3.0"
"node-addon-api": "^5.0.0"
},
"devDependencies": {
"@types/node": "^17.0.21",
"mocha": "^9.2.1",
"@types/node": "^18.0.1",
"mocha": "^10.0.0",
"node-gyp": "^9.0.0",
"nyc": "^15.1.0",
"prettier": "^2.5.1",
"typescript": "^4.6.2"
"prettier": "^2.7.1",
"typescript": "^4.7.4"
},

@@ -73,3 +73,3 @@ "binary": {

"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},

@@ -76,0 +76,0 @@ "standard": {

@@ -114,3 +114,3 @@ # node-argon2

### Before Installing
> You can skip this section if the prebuilt binaries work for you.
> You can skip this section if the prebuilt binaries works for you.

@@ -218,7 +218,7 @@ You **MUST** have a **node-gyp** global install before proceeding with install,

[npm-url]: https://www.npmjs.com/package/argon2
[actions-image]: https://img.shields.io/github/workflow/status/ranisalt/node-argon2/CI?style=flat-square
[actions-image]: https://img.shields.io/github/workflow/status/ranisalt/node-argon2/CI/master?style=flat-square
[actions-url]: https://github.com/ranisalt/node-argon2/actions
[coverage-image]: https://img.shields.io/codacy/coverage/82ca7b57a6ec4c68a02db89618c4094d?style=flat-square
[coverage-url]: https://www.codacy.com/gh/ranisalt/node-argon2/dashboard
[codequality-image]: https://img.shields.io/codacy/grade/15927f4eb15747fd8a537e48a04bd4f6/master.svg?style=flat-square
[codequality-url]: https://www.codacy.com/app/ranisalt/node-argon2
[coverage-image]: https://img.shields.io/codacy/coverage/3aa6daee00154e1492660ecb2f788f73/master.svg?style=flat-square
[coverage-url]: https://app.codacy.com/gh/ranisalt/node-argon2
[codequality-image]: https://img.shields.io/codacy/grade/3aa6daee00154e1492660ecb2f788f73/master.svg?style=flat-square
[codequality-url]: https://app.codacy.com/gh/ranisalt/node-argon2

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc