PARANOID_PASSWORD_LENGTH
PARANOID_PASSWORD_LENGTH
The paranoid-enough password character length requirement.
Interface TokenGenerationInterface - Interface for security token and password generation.
getTokenString(integer $length = self::MODERATE_TOKEN_LENGTH, boolean|integer $useAlphaNumeric = true) : string
Generate a random token string in alphanumeric or hexadecimal format.
Note: This method can generate HEX output if the $useAlphaNumeric
parameter is
set to false
.
integer | $length | The desired output length (default => 32). |
boolean|integer | $useAlphaNumeric | Flag for switching to alphanumerical (default => true). |
Randomly generated alphanumeric/hexadecimal token string.
getPasswordString(integer $length = self::MODERATE_PASSWORD_LENGTH, boolean|integer $stronger = true) : string
Generate a random password string.
Note: This method can use more special symbols on generation if the $stronger
parameter is set to true
.
integer | $length | The desired output length (default => 12). |
boolean|integer | $stronger | Flag for using all printable ASCII characters (default => true). |
Randomly generated password string.