\Orpheus\PublisherPasswordGenerator

The PasswordGenerator class

Class to generate random secured password

Summary

Methods
Properties
Constants
__construct()
setPrimarySet()
generate()
No public properties found
CHAR_ALPHA_LOWER
CHAR_ALPHA_UPPER
CHAR_DIGIT
CHAR_SYMBOL
CHAR_ALPHA
CHAR_ALPHADIGIT
CHAR_ALL
No protected methods found
$primarySets
N/A
No private methods found
No private properties found
N/A

Constants

CHAR_ALPHA_LOWER

CHAR_ALPHA_LOWER

CHAR_ALPHA_UPPER

CHAR_ALPHA_UPPER

CHAR_DIGIT

CHAR_DIGIT

CHAR_SYMBOL

CHAR_SYMBOL

CHAR_ALPHA

CHAR_ALPHA

CHAR_ALPHADIGIT

CHAR_ALPHADIGIT

CHAR_ALL

CHAR_ALL

Properties

$primarySets

$primarySets : array

The set of character we could require in password

Type

array

Methods

__construct()

__construct() 

Constructor

setPrimarySet()

setPrimarySet(integer  $flag, string  $characters) 

Set a known set of character by flag

Parameters

integer $flag
string $characters

generate()

generate(integer  $length = 10, integer  $availables = self::CHAR_ALPHADIGIT, array<mixed,integer>  $tokens = array(self::CHAR_ALPHA, self::CHAR_DIGIT)) : string

Generate a random complex password

Parameters

integer $length
integer $availables
array<mixed,integer> $tokens

Returns

string