PHP Interface Pop\Crypt\CryptInterface

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP

Méthodes publiques

Méthode Description
create ( string $string ) : string Method to create the hashed value
getSalt ( ) : string Method to get the salt
setSalt ( string $salt = null ) : self Method to set the salt
verify ( string $string, string $hash ) : boolean Method to create the hashed value

Method Details

create() public méthode

Method to create the hashed value
public create ( string $string ) : string
$string string
Résultat string

getSalt() public méthode

Method to get the salt
public getSalt ( ) : string
Résultat string

setSalt() public méthode

Method to set the salt
public setSalt ( string $salt = null ) : self
$salt string
Résultat self

verify() public méthode

Method to create the hashed value
public verify ( string $string, string $hash ) : boolean
$string string
$hash string
Résultat boolean