safe.js
v0.1.0
Published
Is your password safe?
Downloads
3
Readme
safe.js
Is your password safe? This is a JavaScript fork of safe.
Installation
Install with npm:
$ npm install safe.js --save
Install with component(1):
$ component install lepture/safe.js
API
var safe = require('safe.js');
safe(password)
Check the safety strength of the password:
safe('password')
// {valid: false, strength: 'simple', message: 'password is too common'}
safe.min
Set the minimal length of the password, default is 4.
safe.words
Words hash map which are commonly used. Default data from 10000 Top Passwords.
Client Side
License
BSD