PHP Интерфейс ManaPHP\Security\SecintInterface

Показать файл Открыть проект

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

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

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

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