PasswordHasher
class PasswordHasher (View source)
Properties
private PasswordHash | $phpassPasswordHash |
Methods
string
hashPassword(string $password)
Create a hash for a plain password.
checkPassword(string $password, string $storedHash)
Check if a password corresponds to a stored hash previosly created with the hashPassword() method.
Details
__construct(Repository $config)
No description
string
hashPassword(string $password)
Create a hash for a plain password.
checkPassword(string $password, string $storedHash)
Check if a password corresponds to a stored hash previosly created with the hashPassword() method.