generateAuthenticationToken()
generateAuthenticationToken(integer $length = 64) : \CryptoManana\DataStructures\AuthenticationToken
Generate a secure token and create an encrypt representation.
Parameters
integer | $length | The desired output string length in bytes (default => 64). |
Throws
- \Exception
Validation errors.
Returns
\CryptoManana\DataStructures\AuthenticationToken —The authentication token data structure object.