Method |
Description |
|
__construct ( ) |
|
|
generatePassword ( ) : string |
Generate one password based on options. |
|
generateWordList ( ) : string[] |
Generate character list for us in generating passwords. |
|
getLength ( ) : integer |
Password length |
|
getMaxPasswordLength ( ) : integer |
Calculate how long the password would be using maximum word length |
|
getMaxWordLength ( ) : integer |
get max word length. |
|
getMinPasswordLength ( ) : integer |
Calculate how long the password would be using minimum word length |
|
getMinWordLength ( ) : integer |
get min word length. |
|
getWordCount ( ) : integer |
Get number of words in desired password. |
|
getWordList ( ) : string |
Get word list filename. |
|
getWordSeparator ( ) : string |
Get word separator. |
|
randomWord ( null | integer $minLength = null, null | integer $maxLength = null ) : string |
|
|
setLength ( integer $characterCount ) |
Set length of desired password(s) |
|
setMaxWordLength ( integer $length ) |
set max word length. |
|
setMinWordLength ( integer $length ) |
set min word length. |
|
setWordCount ( integer $characterCount ) |
Set number of words in desired password(s). |
|
setWordList ( string $filename ) |
Set word list. |
|
setWordSeparator ( string $separator ) |
Set word separator. |
|