
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
node-password-storage
Advanced tools
The best way to protect passwords is to employ salted password hashing.
Generated by OSS Project Generator.
The best way to protect passwords is to employ salted password hashing.
Install package:
$ npm install --save node-password-storage
const lib = require('node-password-storage');
const salt_size = 32;
lib.generateSalt(salt_size, (err, salt) => {
if (err) return console.error(err);
console.log(`SALT: ${salt.toString('hex')}\n`);
});
const lib = require('node-password-storage');
const password = 'password';
const salt = 'salt';
lib.generateHash(password, salt, (err, hash) => {
if (err) return console.error(err);
console.log(`HASH: ${hash.toString('hex')}\n`);
});
const lib = require('node-password-storage');
const password = 'password';
lib.generateStorage(password, (err, storage) => {
if (err) return console.error(err.message);
const params = storage.split(':');
console.log(`SALT => ${params[0]}`);
console.log(`HASH => ${params[1]}`);
lib.verifyStorage(password, storage, (err, success) => {
if (err) return console.error(err);
console.log(`MATCH: ${success}`);
});
});
$ git clone https://github.com/robertoachar/node-password-storage.git
$ npm install
| Action | Usage |
|---|---|
| Starting development mode | npm start |
| Linting code | npm run lint |
| Running unit tests | npm run jest |
| Running code coverage | npm run coverage |
| Running lint + tests | npm test |
| Sending coverage results to Coveralls.io | npm run coveralls |
FAQs
The best way to protect passwords is to employ salted password hashing.
We found that node-password-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.