OpenSslRandomStringGenerator
class OpenSslRandomStringGenerator implements RandomStringGeneratorInterface (View source)
Traits
Constants
ERROR_MESSAGE |
The error message when generating the string fails. |
Methods
string
binToHex(string $binaryData, int $length)
Converts binary data to hexadecimal of given length
__construct()
Create a new OpenSslRandomStringGenerator instance
string
generateString(int $length)
Get a randomly generated secure token
Details
in RandomStringGeneratorTrait at line line 16
string
binToHex(string $binaryData, int $length)
Converts binary data to hexadecimal of given length
at line line 25
__construct()
Create a new OpenSslRandomStringGenerator instance
at line line 44
string
generateString(int $length)
Get a randomly generated secure token