Encryption
in
Define hash and decrypt handler
Tags
Table of Contents
- CheckPassword() : bool
- Check password hash
- HashPassword() : false|null|string
- Create password hash creates a secured, salted password hash using custom method
Methods
CheckPassword()
Check password hash
public
static CheckPassword(string $password, string $hash) : bool
Test the given plain password against defined hash
Parameters
- $password : string
-
The raw password
- $hash : string
-
The hashed password
Return values
bool —True whn hash and password are fitting
HashPassword()
Create password hash creates a secured, salted password hash using custom method
public
static HashPassword(string $password) : false|null|string
Parameters
- $password : string
-
The raw password
Return values
false|null|string —The hashed password or, empty on error