@sopkit/password
v1.0.0
Published
Premium, lightweight password generation and strength analysis library for browser and Node.js.
Maintainers
Readme
@sopkit/password
Premium, lightweight password generation and strength analysis library for Browser and Node.js. Part of the SopKit utility ecosystem.
Online Interactive Tool
You can use the browser-based interactive version of this tool at SopKit Password Generator.
Features
- Highly customizable password generator (custom length, character pool filters).
- Password strength analysis using Information Entropy (shannon entropy) thresholds.
- Security suggestions dynamically tailored to user inputs.
- Zero dependencies.
- ESM and CommonJS support.
Installation
npm install @sopkit/passwordQuick Start
ESM
import { generate, analyze } from "@sopkit/password";
// Generate secure password
const pass = generate({ length: 16, uppercase: true, numbers: true, symbols: true });
// Strength Analysis
const analysis = analyze("P@ssw0rd123!");
console.log(`Entropy: ${analysis.entropy} bits`);
console.log(`Strength Score: ${analysis.score}/4 (${analysis.label})`);
console.log("Suggestions:", analysis.suggestions);License
MIT © SopKit
