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

A library for generating strong passwords.

Screenshots

Password Generator #

By using passwd package, you can generate a strong password that includes a wide set of characters, such as upper and lowercase characters, numbers, special characters or punctuation.

🔑 🗝️ 🔐

Install Package #

add the following line to your pubspec.yaml under dependencies:

dependencies:
  passwd: ^1.0.0

then run:

dart pub get

or

flutter pub get

Getting started #

first import

import 'package:passwd/passwd.dart';

Usage #

now in your dart code, you can use:

print(generatePassword()); // TNCrPnot

print(
  generatePassword(
    length: 20,
    upperCase: true,
  ),
); // VIMTANUPYBTMPICFESYL

print(
  generatePassword(
    length: 20,
    upperCase: true,
    lowerCase: true,
  ),
); // TdClmuvLBQwcMHkUKxHl

print(
  generatePassword(
    length: 20,
    upperCase: true,
    lowerCase: true,
    digits: true,
  ),
); // zp3AzPXvw6h35ZaEgPl1

print(
  generatePassword(
    length: 40,
    upperCase: true,
    lowerCase: true,
    digits: true,
    punctuation: true,
  ),
); // Y#%_8f^ZJ6>IZGv]SmZBqun3"e6k$5ia>IaeKikx

by Shervin Hassanzadeh #

5
likes
150
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

A library for generating strong passwords.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on passwd