Skip to content
pubscout

random_password_generator

0.2.1, released 6 years ago by gktwinapp.com

Generate strong random passwords and estimate password strength in Dart and Flutter.

WASM-ready
$ flutter pub add random_password_generator
Source repository

What it does

Provides a utility class to generate random passwords with customizable character constraints and check password strength. It evaluates passwords and returns a numerical strength score.

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

Use it when

  • You need to generate secure random passwords programmatically.
  • You need to evaluate password strength within your app.

Skip it when

  • You require complex rule-based enterprise password validators.

Strengths

  • Simple and straightforward API for generating passwords.
  • Includes a built-in password strength checker.
  • Supports multiple platforms including Android, iOS, and Web.

Weaknesses

  • Minimal documentation and features beyond basic generation and strength checking.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final password = RandomPasswordGenerator();
String newPassword = password.randomPassword(true, false, true, false, 6);
double passwordstrength = password.checkPassword('hello');

Alternatives

Packages that do the same job and could replace random_password_generator.

  • uuid

    If you only need unique identifiers rather than human-readable passwords.

  • crypto

    If you need cryptographic hash functions instead of password generation.

Works with

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