xcvbnm 0.5.6

  • README.md
  • Installing
  • Versions
  • 59


This is a dart port of the great dropbox/zxcvbn library, a realistic password strength estimator.

This library is strong mode compliant.

Please note, that library did not port all functionality but is already used in production.


library xcvbnm.example.bin;

import 'package:xcvbnm/xcvbnm.dart';

main() {
  String password = "my_pwd_1";
  // Use the direct helper API
  Result result = new Xcvbnm().estimate(password);



Online demo dart code compiled with dart2js

Command line

$  dart bin/xcvbnm_demo.dart --help
  -h, --help     Usage help
  -m, --match    Max number max of match to display
                 (defaults to "4")
$ dart bin/xcvbnm_demo.dart
$ dart bin/xcvbnm_demo.dart 9IOksjdopwd
$ dart bin/xcvbnm_demo.dart "my password"
$ dart bin/xcvbnm_demo.dart pwd1 pwd2 -m 1


Guidelines and format

Before each commit format at the root of the project

$ dartfmt -l 120 -w .


Run all tests in multiple platforms

$ ./test/bin/run_tests.sh


  • Fixed all dart 2.0 errors and warnings


  • Started Changelog
  • Made xcvbnm strong-mode compliant

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  xcvbnm: "^0.5.6"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:xcvbnm/xcvbnm.dart';
Version Uploaded Documentation Archive
0.5.6 Jun 15, 2018 Go to the documentation of xcvbnm 0.5.6 Download xcvbnm 0.5.6 archive
0.5.5 Jul 5, 2017 Go to the documentation of xcvbnm 0.5.5 Download xcvbnm 0.5.5 archive
0.5.4 Sep 5, 2016 Go to the documentation of xcvbnm 0.5.4 Download xcvbnm 0.5.4 archive
0.5.3 Apr 26, 2016 Go to the documentation of xcvbnm 0.5.3 Download xcvbnm 0.5.3 archive
0.5.2 Apr 18, 2016 Go to the documentation of xcvbnm 0.5.2 Download xcvbnm 0.5.2 archive
0.5.1 Apr 18, 2016 Go to the documentation of xcvbnm 0.5.1 Download xcvbnm 0.5.1 archive
0.5.0 Nov 17, 2015 Go to the documentation of xcvbnm 0.5.0 Download xcvbnm 0.5.0 archive
0.4.0 Nov 17, 2015 Go to the documentation of xcvbnm 0.4.0 Download xcvbnm 0.4.0 archive
0.3.6 Nov 16, 2015 Go to the documentation of xcvbnm 0.3.6 Download xcvbnm 0.3.6 archive


We analyzed this package on Jun 15, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
18 / 100
Code health derived from static analysis. [more]
100 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:xcvbnm/xcvbnm.dart.


  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 hints.

    Run dartfmt to format lib/src/feedback.dart.

    Run dartfmt to format lib/src/matching.dart.

    Similar analysis of the following files failed:

    • lib/src/scoring.dart (hint)
  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use xcvbnm.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.9.0 <3.0.0
Dev dependencies
args any
browser any
test ^0.12.20