PHP Class Hackzilla\PasswordGenerator\Generator\HybridPasswordGenerator

Inheritance: extends ComputerPasswordGenerator
ファイルを表示 Open project: hackzilla/password-generator Class Usage Examples

Public Methods

Method Description
__construct ( )
generatePassword ( ) : string Generate one password based on options.
getCharacterList ( ) : CharacterSet Generate character list for us in generating passwords and remove segment separator from character list pool.
getLength ( ) : integer Get number of words in desired password.
getSegmentCount ( ) : integer Get number of segments in desired password.
getSegmentLength ( ) : integer Get number of segments in desired password.
getSegmentSeparator ( ) : string Get Segment Separator.
setLength ( integer $characterCount ) Set length of desired password(s).
setSegmentCount ( integer $segmentCount ) Set number of segments in desired password(s).
setSegmentLength ( integer $segmentLength ) Set length of segment.
setSegmentSeparator ( string $segmentSeparator ) : HybridPasswordGenerator Set segment separator.

Method Details

__construct() public method

public __construct ( )

generatePassword() public method

Generate one password based on options.
public generatePassword ( ) : string
return string password

getCharacterList() public method

Generate character list for us in generating passwords and remove segment separator from character list pool.
public getCharacterList ( ) : CharacterSet
return Hackzilla\PasswordGenerator\Model\CharacterSet Character list

getLength() public method

Get number of words in desired password.
public getLength ( ) : integer
return integer

getSegmentCount() public method

Get number of segments in desired password.
public getSegmentCount ( ) : integer
return integer

getSegmentLength() public method

Get number of segments in desired password.
public getSegmentLength ( ) : integer
return integer

getSegmentSeparator() public method

Get Segment Separator.
public getSegmentSeparator ( ) : string
return string

setLength() public method

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

setSegmentCount() public method

Set number of segments in desired password(s).
public setSegmentCount ( integer $segmentCount )
$segmentCount integer

setSegmentLength() public method

Set length of segment.
public setSegmentLength ( integer $segmentLength )
$segmentLength integer

setSegmentSeparator() public method

Set segment separator.
public setSegmentSeparator ( string $segmentSeparator ) : HybridPasswordGenerator
$segmentSeparator string
return HybridPasswordGenerator