View Source PasswordValidator.Validators.ZXCVBNValidator (Password Validator ZXCVBN v0.2.0)

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:

Summary

Functions

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

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