PHP Interface Webiny\Component\Security\Encoder\EncoderDriverInterface

Every encoder driver must implement this interface so that is compatible with the encoder requirements.
Afficher le fichier Open project: Webiny/Framework Interface Usage Examples

Méthodes publiques

Méthode Description
createPasswordHash ( string $password ) : string Create a hash for the given password.
verifyPasswordHash ( string $password, string $hash ) : boolean Verify if the $password matches the $hash.

Method Details

createPasswordHash() public méthode

Create a hash for the given password.
public createPasswordHash ( string $password ) : string
$password string
Résultat string Password hash.

verifyPasswordHash() public méthode

Verify if the $password matches the $hash.
public verifyPasswordHash ( string $password, string $hash ) : boolean
$password string
$hash string
Résultat boolean True if $password matches $hash. Otherwise false is returned.