2.0.1 • Published 2 years ago

is-password-pwned v2.0.1

Weekly downloads
1
License
Unlicense
Repository
github
Last release
2 years ago

is-password-pwned

Check password against pwnedpasswords.com using k-anonimity model

NPM version Build Status

See Searching pwned passwords by range.
Caches all found hashes in LRU cache.

Runs in node and modern browsers.

CLI

For using from the command line

$ npm i -g is-password-pwned
$ pwned

API

constructor

Parameters

  • size Number size of lru cache (optional, default 10000)

Examples

import Pwnd from 'is-password-pwned'

const pwnd = new Pwnd()
const num = await pwnd.get('nutella')
//> num = 20833

get

get password from lru cache or request it from pwnedpasswords.com if num === undefined password hash could not be found in pwnedpasswords.com

Parameters

  • password String password to verify

Returns await {Number} num - number of found hashes

Installation

Requires nodejs.

$ npm install is-password-pwned

Tests

$ npm test

License

Unlicense https://unlicense.org

References

2.0.1

2 years ago

2.0.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago