pwnchk
v0.3.0
Published
a wrapper for pwnedpasswords to check if a password has been pwned
Downloads
19
Maintainers
Readme
pwnchk
small wrapper for pwnedpasswords to check if a password has been pwned.
available as a cli tool or as a library on npm/pwnchk
note: this code does not expose or send the input to any server. comparison is done locally via sha1 hash. check the official api documentation for more details.
usage
standalone cli
npx pwnchk <password>
from code
npm i pwnchk
import { checkInput } from "pwnchk"; const result = await checkInput("password"); console.table(result);
refs:
- https://haveibeenpwned.com/API/v2#PwnedPasswords
- https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader
- https://www.troyhunt.com/introducing-306-million-freely-downloadable-pwned-passwords/