UriSafeTokenGenerator

UriSafeTokenGenerator

class UriSafeTokenGenerator implements TokenGeneratorInterface

Generates CSRF tokens.

Methods

__construct(int $entropy = 256)

Generates URI-safe CSRF tokens.

string generateToken()

Generates a CSRF token.

Details

__construct(int $entropy = 256)

Generates URI-safe CSRF tokens.

Parameters

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

string generateToken()

Generates a CSRF token.

Return Value

string The generated CSRF token
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部