moxypassword
v0.5.2
Published
Moxy Password
Downloads
1
Readme
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,
}