1.1.1 • Published 6 years ago

password-blacklist v1.1.1

Weekly downloads
49
License
MIT
Repository
github
Last release
6 years ago

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')
1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago