pswd-generator
v1.0.2
Published
Cryptographically-secure password generator written in Typescript with zero dependencies.
Downloads
5
Maintainers
Readme
PSWD Generator
Cryptographically-secure password generator written in Typescript with zero dependencies.
See how it's implemented at my blog post.
Installation
npm i pswd-generator
Usage
Use Presets
import generatePassword, { charsets } from 'pswd-generator';
const password = generatePassword(
24,
charsets.NUMBERS + charsets.LOWERCASE + charsets.UPPERCASE + charsets.SYMBOLS,
);
console.log(password);
// A:_X`h%&:eto5d8i?bFZmOAU
Custom Charset
generatePassword(24, 'ABCDEFG');