passwd_gen 1.0.0-rc.1 passwd_gen: ^1.0.0-rc.1 copied to clipboard
A password generator lib.
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()}');
}
References #
- EFF Dice-Generated Passphrases
- Deep Dive: EFF's New Wordlists for Random Passphrases
- Generate Passwords.org
- Password strength
- zxcvbn: Low-Budget Password Strength Estimation
- Goodbye to the Creator of the Password, And Also Goodbye to Passwords?
- DEDIS Advanced Crypto Library for Go
- NIST Digital Identity Guidelines
- NIST Digital Identity Guidelines Enrollment and Identity Proofing
- NIST Digital Identity Guidelines Authentication and Lifecycle Management
- NIST Digital Identity Guidelines Federation and Assertions