password-blacklist

1.1.1 • Public • Published

Password Blacklist

Build Status codecov Greenkeeper badge

Checks a password against lists of passwords found at https://github.com/danielmiessler/SecLists.

API

Async Version

The async version is better for memory management because it scans the file for the filter, but it is slower. Use this if you are worried about memory usage.

const isPasswordBlacklisted = require('password-blacklist')
 
isPasswordBlacklisted('123456').then((blacklisted) => {
  if (blacklisted) console.error('this password is blacklisted')
})

Synchronous Version

The synchronous version stores the entire list of passwords in memory and is faster.

const isPasswordBlacklisted = require('password-blacklist/in-memory')
 
const blacklisted = isPasswordBlacklisted('123456')
if (blacklisted) console.error('this password is blacklisted')

Package Sidebar

Install

npm i password-blacklist

Weekly Downloads

103

Version

1.1.1

License

MIT

Unpacked Size

1.78 MB

Total Files

5

Last publish

Collaborators

  • jongleberry