PHP Класс ManaPHP\Security\Secint

Наследование: extends ManaPHP\Component, implements ManaPHP\Security\SecintInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_key string
$_keys array

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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

decode() публичный метод

Decodes a hash to the original parameter values.
public decode ( string $hash, string $type = '' ) : integer | false
$hash string the hash to decode
$type string
Результат integer | false

encode() публичный метод

Encodes a variable number of parameters to generate a hash.
public encode ( integer $id, string $type = '' ) : string
$id integer
$type string
Результат string the generated hash

Описание свойств

$_key защищенное свойство

protected string $_key
Результат string

$_keys защищенное свойство

protected array $_keys
Результат array