PasswordService class
Service use to generate Password. Passwords are generated from collections of elements and a random generator that takes elements to build the password. A secure Random is used if supported otherwise the normal is used.
Constructors
- PasswordService()
- No collections initialized.
- PasswordService.effLargeListWords()
- Initialized with the EFF's long list of words.
- PasswordService.effShortListWords()
- Initialized with the EFF's general short list of words.
- PasswordService.latinBase()
- Initialized with latin characters.
- PasswordService.latinFrench()
- Initialized with latin and French characters.
- PasswordService.latinGerman()
- Initialized with latin and German characters.
- PasswordService.latinItalian()
- Initialized the latin and Italian characters.
- PasswordService.latinSpanish()
- Initialized the latin and Spanish characters.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCollectionOfPasswordItems(
String key, List< String> collection) → void - Add a collection of items.
-
call(
num length) → Password - Generate Password using callable class
-
generatePassword(
{num length = 15, Map< String, int> ? distribution, List<String> ? excludeItems}) → Password - Generate a new password.
-
getCollectionKeys(
) → Iterable< String> - Get all keys as Iterable
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAllCollectionOfChars(
) → void - Remove all collections of items
-
removeCollectionOfChars(
String key) → void -
Remove a collection of items
key
identify the collection -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited