PHP Class Hackzilla\PasswordGenerator\Generator\ComputerPasswordGenerator

Inheritance: extends AbstractPasswordGenerator
Afficher le fichier Open project: hackzilla/password-generator Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( )
generatePassword ( ) : string Generate one password based on options.
getAvoidSimilar ( ) : string Avoid similar characters enabled?
getCharacterList ( ) : CharacterSet Generate character list for us in generating passwords.
getLength ( ) : integer Password length.
getLowercase ( ) : string Are Lowercase characters enabled?
getNumbers ( ) : string Are Numbers enabled?
getSymbols ( ) : string Are Symbols enabled?
getUppercase ( ) : boolean Are Uppercase characters enabled?
setAvoidSimilar ( boolean $enable = true ) Enable characters to be removed when avoiding similar characters.
setLength ( integer $characterCount ) Set length of desired password(s).
setLowercase ( boolean $enable = true ) Enable lowercase characters.
setNumbers ( boolean $enable = true ) Enable numbers.
setSymbols ( boolean $enable = true ) Enable symbol characters.
setUppercase ( boolean $enable = true ) Enable uppercase characters.

Method Details

__construct() public méthode

public __construct ( )

generatePassword() public méthode

Generate one password based on options.
public generatePassword ( ) : string
Résultat string password

getAvoidSimilar() public méthode

Avoid similar characters enabled?
public getAvoidSimilar ( ) : string
Résultat string

getCharacterList() public méthode

Generate character list for us in generating passwords.
public getCharacterList ( ) : CharacterSet
Résultat Hackzilla\PasswordGenerator\Model\CharacterSet Character list

getLength() public méthode

Password length.
public getLength ( ) : integer
Résultat integer

getLowercase() public méthode

Are Lowercase characters enabled?
public getLowercase ( ) : string
Résultat string

getNumbers() public méthode

Are Numbers enabled?
public getNumbers ( ) : string
Résultat string

getSymbols() public méthode

Are Symbols enabled?
public getSymbols ( ) : string
Résultat string

getUppercase() public méthode

Are Uppercase characters enabled?
public getUppercase ( ) : boolean
Résultat boolean

setAvoidSimilar() public méthode

Enable characters to be removed when avoiding similar characters.
public setAvoidSimilar ( boolean $enable = true )
$enable boolean

setLength() public méthode

Set length of desired password(s).
public setLength ( integer $characterCount )
$characterCount integer

setLowercase() public méthode

Enable lowercase characters.
public setLowercase ( boolean $enable = true )
$enable boolean

setNumbers() public méthode

Enable numbers.
public setNumbers ( boolean $enable = true )
$enable boolean

setSymbols() public méthode

Enable symbol characters.
public setSymbols ( boolean $enable = true )
$enable boolean

setUppercase() public méthode

Enable uppercase characters.
public setUppercase ( boolean $enable = true )
$enable boolean