PHP Class Phalcon\Test\Proxy\Security

Author: Andres Gutierrez ([email protected])
Author: Nikolaos Dimopoulos ([email protected])
Inheritance: extends Phalcon\Security
Show file Open project: phalcon/cphalcon Class Usage Examples

Public Methods

Method Description
checkHash ( $password, $passwordHash, $maxPassLength )
checkToken ( $tokenKey = null, $tokenValue = null, $destroyIfValid = true )
computeHmac ( string $data, string $key, string $algo, boolean $raw = false ) : string
getDI ( )
getRandomBytes ( )
getSaltBytes ( $numberBytes )
getSessionToken ( )
getToken ( )
getTokenKey ( )
hash ( $password, $workFactor )
isLegacyHash ( $passwordHash )
setDI ( Phalcon\DiInterface $di )
setRandomBytes ( $randomBytes )

Method Details

checkHash() public method

public checkHash ( $password, $passwordHash, $maxPassLength )

checkToken() public method

public checkToken ( $tokenKey = null, $tokenValue = null, $destroyIfValid = true )

computeHmac() public method

public computeHmac ( string $data, string $key, string $algo, boolean $raw = false ) : string
$data string
$key string
$algo string
$raw boolean
return string

getDI() public method

public getDI ( )

getRandomBytes() public method

public getRandomBytes ( )

getSaltBytes() public method

public getSaltBytes ( $numberBytes )

getSessionToken() public method

public getSessionToken ( )

getToken() public method

public getToken ( )

getTokenKey() public method

public getTokenKey ( )

hash() public method

public hash ( $password, $workFactor )

isLegacyHash() public method

public isLegacyHash ( $passwordHash )

setDI() public method

public setDI ( Phalcon\DiInterface $di )
$di Phalcon\DiInterface

setRandomBytes() public method

public setRandomBytes ( $randomBytes )