PHP Interface ManaPHP\Security\SecintInterface

Mostrar archivo Open project: manaphp/manaphp

Public Methods

Method Description
decode ( string $hash, string $type = '' ) : integer | false Decodes a hash to the original parameter values.
encode ( integer $id, string $type = '' ) : string Encodes a variable number of parameters to generate a hash.

Method Details

decode() public method

Decodes a hash to the original parameter values.
public decode ( string $hash, string $type = '' ) : integer | false
$hash string the hash to decode
$type string
return integer | false

encode() public method

Encodes a variable number of parameters to generate a hash.
public encode ( integer $id, string $type = '' ) : string
$id integer
$type string
return string the generated hash