1.1.1 • Published 3 years ago

@atlc/hibp v1.1.1

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

@atlc/hibp

Simple and lightweight NPM module requiring 0 dependencies. Checks your password against the HaveIBeenPwned password API to check for known matches in plaintext breaches. Returns a promise that resolves with an object with an isPwned status and the amount of breaches detected, if any. Comes with typings by default.

Sample usage:

const validate = require('@atlc/hibp');

// Just generated from password manager, please do not use this now-public password :)
const goodPass = await validate('O1J*%pmXsGn^*sdP45ro12cZ5p@E$53Umu#d*^CjOvm');
const badPass = await validate('hunter2');

console.log(goodPass);  // { isPwned: false, breaches: 0 }
console.log(badPass);   // { isPwned: true, breaches: 17491 }
1.1.1

3 years ago

1.1.0

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago