simple-password-tester

1.0.0 • Public • Published

Simple Password Tester

A lightweight simple library for scoring passwords. This gives a score based on the password length, the number of unique characters, and the number of unique character classes (lowercase, uppercase, numbers, and other).

The required score you should use will vary for each application but 50 represents a reasonable compromise between usability and strength.

Short passwords aren't forbidden so long as the other complexity measures are met so you might like to explicitly check a length requirement as well as using this library to check strength.

Usage

var passwordTester = require('simple-password-tester');
var score = passwordTester('password');
if (score < 50) {
  // show validation error
} else {
  // proceed
}

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i simple-password-tester

    Weekly Downloads

    1,323

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • derickl
    • inromualdo
    • ernestoteo
    • medic-ci
    • craig_modules
    • njuguna-medic
    • garethbowen
    • hgalemayehu
    • abbyad
    • twd
    • kennsippell