\FAA\InterfacesEncryption

Define hash and decrypt handler

Summary

Methods
Constants
HashPassword()
CheckPassword()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

HashPassword()

HashPassword(string  $password): false|null|string

Create password hash creates a secured, salted password hash using custom method

Parameters

string $password

The raw password

Returns

false|null|string —

The hashed password or, empty on error

CheckPassword()

CheckPassword(string  $password,string  $hash): boolean

Check password hash

Test the given plain password against defined hash

Parameters

string $password

The raw password

string $hash

The hashed password

Returns

boolean —

True whn hash and password are fitting