
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.
EZHash is a simple to use module that allows you to encrypt and verify passwords using hashing function PBKDF2 and Node built-in module crypto. EZHash provides both sync and async option for hashing and verification.
$ npm i ezhash
EZHash module is imported into your project like this:
const EZHash = require('ezhash')();
You can also pass in optional setting values like this:
const EZHash = require('ezhash')({
// (Values listed below are the default ones)
hashLength: 64, // Determines length of the hash in bytes
saltLength: 16, // Determines length of the salt in bytes
iterations: 100000, // Determines how many times the password will be hashed
algo: 'sha512' // Determines which hashing algorithm will be used
});
After importing the module you can utilise these functions:
EZHash.hashPass('password'); // Returns a Promise that resolves with a derived key produced by PBKDF2
EZHash.verifyPass('password', derivedKey); // Returns a Promise that resolves with a boolean which determines whether the password matches the key
EZHash.hashPassSync('password'); // Returns a derived key produced by PBKDF2
EZHash.verifyPassSync('password', derivedKey); // Returns a boolean that determines whether the password matches the key
MIT
FAQs
Utility for simple and secure password encryption and verification
The npm package ezhash receives a total of 4 weekly downloads. As such, ezhash popularity was classified as not popular.
We found that ezhash 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.