Security & Cryptov1.0.0
@sopkit/password
Customizable password generator and security entropy analyzer using information entropy.
Overview
Generate secure random string passwords and perform strength checks based on pool variety and bit entropy (Shannon Entropy scale) rather than basic length metrics.
Installation
npm install @sopkit/password
Quick Start (ESM)
import { generate, analyze } from "@sopkit/password";
const pass = generate({ length: 16 });
const res = analyze(pass);API Reference
generate(options?: GeneratorOptions): stringGenerates secure random password.
analyze(password: string): StrengthResultReturns score, label, entropy, and tips.
Rivals Comparison
How @sopkit/password compares against the typical industry standard (generate-password / password-sheriff):
Entropy Checks
Supported (calculates bits of entropy)Rarely supported natively
Bundle size
3.1 KB18 KB
Guaranteed chars
Forces 1 char from each enabled poolVaries
SopKit Guarantee
All libraries in the SopKit ecosystem are guaranteed to have zero server calls, zero analytical trackers, and 100% client-side privacy-first execution.