PHP Class ManaPHP\Security\Secint

Inheritance: extends ManaPHP\Component, implements ManaPHP\Security\SecintInterface
Mostrar archivo Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_key string
$_keys array

Public Methods

Method Description
__construct ( string | array $options = [] ) Secint constructor.
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

__construct() public method

Secint constructor.
public __construct ( string | array $options = [] )
$options string | array

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

Property Details

$_key protected_oe property

protected string $_key
return string

$_keys protected_oe property

protected array $_keys
return array