PHP Interface Pagekit\Auth\Encoder\PasswordEncoderInterface

Afficher le fichier Open project: pagekit/pagekit Interface Usage Examples

Méthodes publiques

Méthode Description
hash ( string $raw ) : string Encodes the raw password.
verify ( string $hash, string $raw, string $salt = null ) : boolean Checks a raw password against an encoded password.

Method Details

hash() public méthode

Encodes the raw password.
public hash ( string $raw ) : string
$raw string The password to hash
Résultat string

verify() public méthode

Checks a raw password against an encoded password.
public verify ( string $hash, string $raw, string $salt = null ) : boolean
$hash string A hashed password
$raw string A raw password
$salt string
Résultat boolean