
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.
A lightweight utility to evaluate password strength and generate password suggestions.
pwdkit is a lightweight password toolkit that lets you:
npm install pwdkit
const { PasswordToolkit } = require("pwdkit");
const pwd_instance = new PasswordToolkit({
minimum_characters: 10,
containsUpperCase: true,
containsLowerCase: true,
containsNumbers: true,
containsSpecialCharacters: true,
allowedSpecialCharacters: ["*", "^", "#", "@"],
});
console.log(pwd_instance.analyse("yzmk1W1Q^v"));
// Output: { score: 92 }
console.log(pwd_instance.isPolicySatisfied("yzmk1W1Qv"));
// Output: false
console.log(pwd_instance.getPolicy());
// Output:
{
minimum_characters: 10,
containsUpperCase: true,
containsLowerCase: true,
containsNumbers: true,
containsSpecialCharacters: true,
allowedSpecialCharacters: ["*", "^", "#", "@"],
}
console.log(pwd_instance.getSuggestions(3));
// Example Output:
[
{ password: 'W@q@GJm43t', score: 100 },
{ password: 'g5KxFjh^2V', score: 96 },
{ password: 'U9Y*Q#^4@n', score: 100 }
]
import { PasswordToolkit } from "pwdkit";
const toolkit = new PasswordToolkit({
minimum_characters: 12,
allowedSpecialCharacters: ["!", "%", "#"]
});
const result = toolkit.analyse("MyS3cur3#Pass");
console.log(result); // { score: ... }
const is_pwd_matches_policy = toolkit.isPolicySatisfied("MyS3cur3#Pass"));
// Output: true
console.log(toolkit.getPolicy());
// Output:
{
minimum_characters: 12,
containsUpperCase: true,
containsLowerCase: true,
containsNumbers: true,
containsSpecialCharacters: true,
allowedSpecialCharacters: ["!", "%", "#"],
}
const suggestions = toolkit.getSuggestions(5);
console.log(suggestions);
Options that can be passed to PasswordToolkit
| Option | Type | Default | Description |
|---|---|---|---|
minimum_characters | number | 8 | Minimum password length |
containsUpperCase | boolean | true | Require uppercase letters |
containsLowerCase | boolean | true | Require lowercase letters |
containsNumbers | boolean | true | Require digits |
containsSpecialCharacters | boolean | true | Require special characters |
allowedSpecialCharacters | string[] | Default set (!@#$%^&*()_+[]{} etc.) | Custom special characters |
All the above keys are optional. if not provided it uses the default one.
FAQs
A lightweight utility to evaluate password strength and generate password suggestions.
We found that pwdkit demonstrated a healthy version release cadence and project activity because the last version was released less than 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.