0.1.0 • Published 10 years ago

safe.js v0.1.0

Weekly downloads
4
License
BSD
Repository
github
Last release
10 years ago

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