password_strength_verificator 1.0.1 copy "password_strength_verificator: ^1.0.1" to clipboard
password_strength_verificator: ^1.0.1 copied to clipboard

This package provides a function to check the strength of a password

example/password_strength_verificator_example.dart

import 'package:password_strength_verificator/password_strength_verificator.dart';

void main(List<String> args) async {
  final verificator = PasswordStrengthVerificator(minPasswordLength: 8);
  final tiny = await verificator('abcd');
  final veryWeek = await verificator('abcdefgh');
  final week = await verificator('abcdEFGH');
  final good = await verificator('abcdABC1');
  final strong = await verificator('aaBB11@@');

  final strong2 = await verificator('aaBB@@!!');

  print([
    tiny,
    week,
    strong,
    veryWeek,
    week,
    good,
    strong2
  ]); // [PasswordStrength.tiny, PasswordStrength.week, PasswordStrength.strong, PasswordStrength.veryWeek, PasswordStrength.week, PasswordStrength.good]
}
0
likes
140
points
51
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides a function to check the strength of a password

Homepage

Documentation

API reference

License

MIT (license)

More

Packages that depend on password_strength_verificator