Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
password-hashing-entreprenerd
Advanced tools
A simple TS package used for password generation and verification
A simple package to hash passwords and verify if the password and the hash match
yarn add password-hashing
## Usage
import { validatePassword, hashPassword } from "password-hashing"
const { hash, salt } = hashPassword("YOUR PASSWORD")
const isValid = validatePassword("YOUR PASSWORD", salt, hash) // Is the password valid?
boolean
Given an input password a salt and an hash Does the given password match with the hash?
HashAndSalt
Given a Password, hash it with a salt, then return the hash and the salt
Object
boolean
Given an input password a salt and an hash Does the given password match with the hash?
Kind: global function
Returns: boolean
- does hash(inputPassword + salt) === storedHash?
Param | Type |
---|---|
inputPassword | string |
salt | string |
storedHash | string |
HashAndSalt
Given a Password, hash it with a salt, then return the hash and the salt
Kind: global function
Returns: HashAndSalt
- object containing the hash and the salt used
Param | Type |
---|---|
password | string |
Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
hash | string | The hash we got |
salt | string | The salt used to hash |
FAQs
A simple TS package used for password generation and verification
The npm package password-hashing-entreprenerd receives a total of 4 weekly downloads. As such, password-hashing-entreprenerd popularity was classified as not popular.
We found that password-hashing-entreprenerd 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.