Md5HashStrategy
in package
implements
HashStrategy
Class Md5HashStrategy
Interfaces, Classes and Traits
- HashStrategy
- Interface HashStrategy
Table of Contents
- hash() : string
- Hashes the provided password.
- verify() : bool
- Verifies a provided password by comparing it with the hash.
Methods
hash()
Hashes the provided password.
public
hash(string $password) : string
Parameters
- $password : string
Return values
string —verify()
Verifies a provided password by comparing it with the hash.
public
verify(string $password, string $hash) : bool
Parameters
- $password : string
- $hash : string