class UriSafeTokenGenerator implements TokenGeneratorInterface

Generates CSRF tokens.

Methods

__construct(int $entropy = 256)

Generates URI-safe CSRF tokens.

string
generateToken()

Generates a CSRF token.

Details

at line 28
__construct(int $entropy = 256)

Generates URI-safe CSRF tokens.

Parameters

int $entropy The amount of entropy collected for each token (in bits)

at line 36
string generateToken()

Generates a CSRF token.

Return Value

string The generated CSRF token