0.5.2 • Published 5 years ago

moxypassword v0.5.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

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,
}