Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

numerai/password-validator-zxcvbn

 
 

Repository files navigation

PasswordValidatorZxcvbn

This is a custom validator for [https://github.com/axelson/password-validator/](Password Validator) that implements the https://github.com/dropbox/zxcvbn password scoring algorithm via https://github.com/techgaun/zxcvbn-elixir/.

Installation

Add the following to your deps list in mix.exs

{:password_validator_zxcvbn, "~> 0.1.0"},

Configuration and Usage

iex> opts = [
...>   additional_validators: [PasswordValidator.Validators.ZXCVBNValidator],
...>   zxcvbn: [min_score: 4]
...> ]
iex> PasswordValidator.validate_password("password", opts)
{:error, ["This is a top-10 common password"]}

Known Issues

About

Dropbox's zxcvbn password checking algorithm implementation for password_validator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Elixir 100.0%