Skip to content
pubscout

password_strength

0.2.0, released 6 years ago by julien-scholz.dev

A password strength estimator for Dart and Flutter applications.

WASM-ready
$ flutter pub add password_strength
Source repository

What it does

Estimates password strength based on length, character types, and checks against the top 10,000 most used passwords. Returns a double value representing the estimated strength.

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

Use it when

  • You need to show users if their chosen password is weak or strong against brute-force attacks.
  • You want a simple utility function to evaluate password security in forms.

Skip it when

  • You require advanced enterprise-grade policy enforcement with custom rules and regex requirements.
  • You need async remote database checks for compromised credentials.

Strengths

  • Very simple and straightforward API with a single estimation function.
  • Built-in dictionary check against top 10,000 most used passwords.
  • Supports null-safety and runs across all platforms.

Weaknesses

  • Very basic feature set with no customizable rule engine.
  • Dictionary checks are limited to the hardcoded top 10,000 list.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:password_strength/password_strength.dart';

double strength = estimatePasswordStrength('passw0rd');

if (strength < 0.3)
  print('This password is weak!');

Alternatives

Packages that do the same job and could replace password_strength.

Works with

Packages commonly used together with password_strength: ones it builds on, ones built on it, and its own family.