class UriSafeTokenGenerator implements TokenGeneratorInterface
Generates CSRF tokens.
__construct(int $entropy = 256) Generates URI-safe CSRF tokens. | ||
string | generateToken() Generates a CSRF token. |
Generates URI-safe CSRF tokens.
int | $entropy | The amount of entropy collected for each token (in bits) |
Generates a CSRF token.
string | The generated CSRF token |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Csrf/TokenGenerator/UriSafeTokenGenerator.html