PHP Class Webiny\Component\Security\Encoder\Drivers\Crypt

Inheritance: implements Webiny\Component\Security\Encoder\EncoderDriverInterface, use trait Webiny\Component\Crypt\CryptTrait
Afficher le fichier Open project: Webiny/Framework

Méthodes publiques

Méthode Description
__construct ( ) Constructor
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

__construct() public méthode

Constructor
public __construct ( )

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.