password_validator

Last updated:

0 purchases

password_validator Image
password_validator Images
Add to Cart

Description:

password validator

password_validator #
import "package:password_validator/password_validator.dart";
A password validator package for Dart
Getting Started #



Parameters
Usage




uppercase
Integer - Minimum number of uppercase letters


min
Integer - Minimum password length


max
Integer - Maximum password length


digits
Integer - Number of digits


blacklist
Blacklisted passwords ex. ["password", "p4ssw0rd"]



Init #
PasswordValidator passwordValidator = new PasswordValidator(uppercase: 2, min: 6, digits: 5, blacklist: ["password", "mysecretpassword"]);
Validate password #
passwordValidator.validate("password"); => will return false since "password is blacklisted and it doesnt have 5 digits"

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.