[][src]Crate zxcvbn

zxcvbn is a password strength estimator based off of Dropbox's zxcvbn library.

Through pattern matching and conservative estimation, it recognizes and weighs 30k common passwords, common names and surnames according to US census data, popular English words from Wikipedia and US television and movies, and other common patterns like dates, repeats (aaa), sequences (abcd), keyboard patterns (qwertyuiop), and l33t speak.

Consider using zxcvbn as an algorithmic alternative to password composition policy — it is more secure, flexible, and usable when sites require a minimal complexity score in place of annoying rules like "passwords must contain three of {lower, upper, numbers, symbols}".

Re-exports

pub use crate::matching::Match;

Modules

feedback

Contains structs and methods related to generating feedback strings for providing help for the user to generate stronger passwords.

matching

Defines structures for matches found in a password

time_estimates

Contains structs and methods for calculating estimated time needed to crack a given password.

Structs

Entropy

Contains the results of an entropy calculation

Enums

ZxcvbnError

Potential errors that may be returned from zxcvbn

Functions

zxcvbn

Takes a password string and optionally a list of user-supplied inputs (e.g. username, email, first name) and calculates the strength of the password based on entropy, using a number of different factors.