PHP Interface ManaPHP\Security\SecintInterface

Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

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