passwd_gen 1.1.2 icon indicating copy to clipboard operation
passwd_gen: ^1.1.2 copied to clipboard

It allows to generate passwords and passphrases from different collections of elements. It includes the word list proposed by EFF's

Pub

Password and passphrase generator. #

A library to generate passwords. It includes a series of collections of items such as: Latin characters as well as French, German, Italian, Spanish extensions and the usual special characters.

It also includes the EFF's word list from the work of Joseph Bonneau and others. (See references below).

It allows to extend the collections with its own elements.

Usage #

See ./example for more examples

import 'package:passwd_gen/passwd_gen.dart';

void main() {
    final generator = PasswordService.latinBase();
    print('Password with length of 29; upper,lower case, numbers, special '
    'characters that are available with UK/US keyboard: ${generator(29)}');
}
import 'package:passwd_gen/passwd_gen.dart';

void main() {
    final generator = PasswordService.effLargeListWords();
    print('Passphrase based on EFF\'s large words list: ${generator(5)}');
}
import 'package:passwd_gen/passwd_gen.dart';

void main() {
    final generator = PasswordService.latinFrench();
    final password = generator(13);
    print('Get bits of entropy for the generated password: ${password.entropy.toInt()}');
}
import 'package:passwd_gen/passwd_gen.dart';

void main() {
  final generator = PasswordService.latinBase();
  final excludedChar = [
    '£',
    '\$',
    '€',
    '\\'
  ];
  final password=generator.generatePassword(length: 29, excludeItems: excludedChar);
  print('Password with length of 29; without some excluded char: $password');
}

Use: #

References #

1
likes
140
pub points
23%
popularity

Publisher

verified publisher iconkurdy.ch

It allows to generate passwords and passphrases from different collections of elements. It includes the word list proposed by EFF's

Repository (GitLab)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

More

Packages that depend on passwd_gen