password_policy library
Dart package that help restrict passwords to a strong policy.
Classes
- DigitRule
- This rule verify if password contains at least minimumNbDigits digits.
- LengthRule
- This rule verify if password is longer or equal to minimalLength.
- LowerCaseRule
- This rule verify if password contains at least minimumLowerCaseCharacters lower case character, also checks for unicode lower case characters.
- NoSpaceRule
- This rule verify if password contains whitespaces, newlines, tabs, vertical unicode whitespaces. If any is present the password is not validated.
- PasswordCheck
- Used to verify the strength of a password.
- PasswordPolicy
- Implements a password policy.
- SpecialCharacterRule
- This rule verify if password contains at least minimumSpecialCharacters special character (punctuation and symbols), also checks for unicode special characters.
- UpperCaseRule
- This rule verify if password contains at least minimumUpperCaseCharacters upper case character, also checks for unicode upper case characters.
- ValidationRule
-
Interface that helps to create
ValidationRule
s.
Enums
- Strength
- Password strength from Weak to Unbreakable, in default implementations this will refer to your password score.