Skip to content
pubscout

zxcvbn

1.0.0, released 5 years ago by careapp.com.au

Dart port of Dropbox's zxcvbn password strength estimator library.

WASM-ready
$ flutter pub add zxcvbn
Source repository

What it does

Evaluates password strength and returns a score from 0 to 4 along with warnings and suggestions. It is a direct port of the original CoffeeScript zxcvbn library to maintain identical results.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to estimate password strength in a Dart or Flutter app
  • You want results that match Dropbox's original zxcvbn implementation

Skip it when

  • You are looking for a clean-room, idiomatic Dart implementation without translated CoffeeScript patterns

Strengths

  • Gives the exact same results as the official Dropbox CoffeeScript zxcvbn library
  • Ported all original tests
  • Supports null safety

Weaknesses

  • Internal Dart code is somewhat ugly and non-standard due to being a direct port
  • Upstream zxcvbn has not been updated for several years

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

not documented

import 'package:zxcvbn/zxcvbn.dart';

void main() {
  final zxcvbn = Zxcvbn();
  final result = zxcvbn.evaluate('P@ssw0rd');
  print('Score: ${result.score}');
}

Alternatives

Packages that do the same job and could replace zxcvbn.

  • puppeteer

    A Dart port of Puppeteer to automate and control Chrome over the DevTools Protocol.

  • unorm_dart

    Unicode normalization for Dart supporting NFC, NFD, NFKC, and NFKD forms.

  • zxing2

    Pure Dart library for encoding and decoding QR codes.

  • fhir_path

    Model-independent FHIRPath evaluation engine in Dart, port of the Java reference implementation.