moxypassword

0.5.2 • Public • Published

moxy-password

MoxyPassword generator and password strength test.

Password Ratings:

  • dangerous (change password immediately if using)
  • weak (lots of issues)
  • average
  • good (some password issues)
  • strong
  • really strong (no detected issues)
  • unbreakable (likely)

Password checks

  • Minimum of 8 character length
  • Passwords should contain a number, mixed case character, and symbol
  • Detection of repeating characters and sequences (hellohellohello, abcdefg, 54321)
  • Detection of QWERTY sequences (asdf, qwerty, ghjk, !@#$%, etc.)
  • Detection of passwords similar to provided data (eg. previous passwords, demographic data)

Usage

const data = ['reddit'] // data could be previous password, demographics related to a user, etc.
const result = MoxyPassword.isPasswordSafe('reddit4life!', data)

Outputs:

{
    measurement: 'good',
    problems:
    [
        'Password should contain at least one upper case and one lower case letter.',
        'Password contains a word or phrase associated with your account.',
    ],
    repeatingCharacters: null,
    safe: false,
    sequences: [],
    strength: 85,
}

Readme

Keywords

Package Sidebar

Install

npm i moxypassword

Weekly Downloads

0

Version

0.5.2

License

Apache-2.0

Unpacked Size

34.9 kB

Total Files

9

Last publish

Collaborators

  • dancmox