Password Validator ZXCVBN v0.1.0 PasswordValidator.Validators.ZXCVBNValidator View Source

Validates a password's strength by estimating how difficult the password is for a password cracker to crack. Uses multiple dictionaries of common names and popular english words.

More info:

Link to this section Summary

Functions

Validate the password by checking if it is similar to common names and words.

Link to this section Functions

Link to this function

validate(string, opts \\ [])

View Source

Validate the password by checking if it is similar to common names and words.

Examples

iex> ZXCVBNValidator.validate("pass")
{:error, ["This is a top-100 common password"]}

iex> ZXCVBNValidator.validate("Multi word password", zxcvbn: [min_score: 4])
:ok