dart_zxcvbn 0.0.1+2 copy "dart_zxcvbn: ^0.0.1+2" to clipboard
dart_zxcvbn: ^0.0.1+2 copied to clipboard

A port of @zxcvbn-ts/zxcvbn to Dart.

dart_zxcvbn dart_zxcvbn dart_zxcvbn melos

dart_zxcvbn #

❗ THIS PACKAGE IS STILL WORK IN PROGRESS ❗

Description #

This package is a Dart port of @zxcvbn-ts/zxcvbn, which is a Typescript rewrite of the original library zxcvbn from Dropbox.

Usage #

import 'package:dart_zxcvbn/dart_zxcvbn.dart';
import 'package:dart_zxcvbn_language_common/dart_zxcvbn_language_common.dart';
import 'package:dart_zxcvbn_language_en/dart_zxcvbn_language_en.dart';

final common = LanguageCommon();
zxcvbn.setOptions(Options(
  dictionary: Dictionary.merge([
    common.dictionary,
    LanguageEn().dictionary,
  ]),
  graphs: common.adjacencyGraphs,
  translations: LanguageEn().translations,
));

final result = zxcvbn('test');

TODO #

  • ❌ Async matching
  • ❌ date matcher
  • ❌ dictionary matcher
    • ✅ dictionary (bruteforce) matcher
    • ❌ dictionary (l33t) matcher
    • ✅ dictionary (reverse) matcher
  • ❌ regex matcher
  • ❌ repeat matcher
  • ✅ sequence matcher
  • ❌ spatial matcher

Credits #

License #

2
likes
0
pub points
48%
popularity

Publisher

verified publisherinway.dev

A port of @zxcvbn-ts/zxcvbn to Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection

More

Packages that depend on dart_zxcvbn