Mental Space

Token
in package

FinalYes

Table of Contents

Methods

make_token()  : string
Create token
rand_alphanumeric()  : string
Generate random chars
verify_token()  : bool
Check if the given token is valid

Methods

make_token()

Create token

public make_token([int $length = 16 ]) : string
Parameters
$length : int = 16
Return values
string

rand_alphanumeric()

Generate random chars

public rand_alphanumeric() : string
Return values
string

Random Chars

verify_token()

Check if the given token is valid

public verify_token( $str) : bool
Parameters
$str :
Return values
bool

        
On this page

Search results