safe_password_generator 1.0.0 copy "safe_password_generator: ^1.0.0" to clipboard
safe_password_generator: ^1.0.0 copied to clipboard

A secure Flutter package for generating strong with support for multiple character sets and complexity rules

Safe Password Generator #

A secure and customizable password generator for Dart and Flutter. Generate strong passwords with options for uppercase, lowercase, numbers, and special characters. Calculate password strength and get strength labels.

Features #

  • Generate secure passwords with customizable length
  • Include/exclude uppercase, lowercase, numbers, and special characters
  • Calculate password strength on a scale of 0 to 100
  • Get password strength labels (e.g., "Very Strong", "Weak")
  • Works in both Dart and Flutter environments

Getting Started #

Add the following to your pubspec.yaml file:

dependencies:
  safe_password_generator: ^1.0.0

Usage #

Import the package where needed:

import 'package:safe_password_generator/safe_password_generator.dart';

void main() {
  // Generate a password
  final password = SafePasswordGenerator.generatePassword(
    length: 16,
    includeUppercase: true,
    includeLowercase: true,
    includeNumbers: true,
    includeSpecialCharacters: true,
  );
  print('Generated Password: $password');

  // Calculate password strength
  final strength = SafePasswordGenerator.calculatePasswordStrength(password);
  print('Password Strength: ${strength.toStringAsFixed(2)}%');

  // Get strength label
  final label = SafePasswordGenerator.getStrengthLabel(strength);
  print('Strength Label: $label');
}

For more examples, check out the Advanced Example.

Screenshots #

Usage Example

API Reference #

For detailed API documentation, visit the API reference.

6
likes
160
points
72
downloads

Publisher

unverified uploader

Weekly Downloads

A secure Flutter package for generating strong with support for multiple character sets and complexity rules

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on safe_password_generator