PHP Interface Webiny\Component\Security\Encoder\EncoderDriverInterface

Every encoder driver must implement this interface so that is compatible with the encoder requirements.
显示文件 Open project: Webiny/Framework Interface Usage Examples

Public Methods

Method 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 method

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

verifyPasswordHash() public method

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