PHP Class ManaPHP\Security\Secint

Inheritance: extends ManaPHP\Component, implements ManaPHP\Security\SecintInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_key string
$_keys array

Méthodes publiques

Méthode 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 méthode

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

decode() public méthode

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

encode() public méthode

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

Property Details

$_key protected_oe property

protected string $_key
Résultat string

$_keys protected_oe property

protected array $_keys
Résultat array