pwdgen-cli
v1.0.0
Published
Privacy-first password, passphrase, hex, and Base64URL generation using Web Crypto.
Maintainers
Readme
pwdgen-cli
Privacy-first password, passphrase, hex, and Base64URL generation with Web Crypto. Generation happens on the current device; the CLI does not call the PwdGen website or API.
Install
npm install --global pwdgen-cliCLI
pwdgen generate --mode password --length 20 --count 5 --symbols
pwdgen generate --mode passphrase --words 5 --separator hyphen
pwdgen generate --mode base64url --length 32 --jsonJavaScript API
import { generate, generateMany, calculateEntropy } from 'pwdgen-cli';
const password = generate({ mode: 'password', length: 20, symbols: true });
const tokens = generateMany({ mode: 'base64url', length: 32, count: 5 });
const bits = calculateEntropy({ length: 20, alphabetSize: 74 });Security model
- Uses
crypto.getRandomValues()and rejection sampling. - Never uses
Math.random(). - Does not upload, log, persist, or analyze generated values.
- Entropy calculations describe uniformly random selections, not human-created passwords.
Learn more at PwdGen Developer and Security methodology.
License
MIT
