UriSafeTokenGenerator
in package
implements
TokenGeneratorInterface
Generates CSRF tokens.
Tags
Interfaces, Classes, Traits and Enums
- TokenGeneratorInterface
- Generates CSRF tokens.
Table of Contents
- $entropy : mixed
- __construct() : mixed
- Generates URI-safe CSRF tokens.
- generateToken() : string
- Generates a CSRF token.
Properties
$entropy
private
mixed
$entropy
Methods
__construct()
Generates URI-safe CSRF tokens.
public
__construct([int $entropy = 256 ]) : mixed
Parameters
- $entropy : int = 256
-
The amount of entropy collected for each token (in bits)
Return values
mixed —generateToken()
Generates a CSRF token.
public
generateToken() : string