\FAA\Handler\EncryptionCustom

Implement custom encryption method

Summary

Methods
Properties
Constants
HashPassword()
CheckPassword()
RandomPassword()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

HashPassword()

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

Create password hash creates a secured, salted password hash using the password_hash() method

Parameters

string $password

A system user password

Returns

false|null|string —

The hashed password

CheckPassword()

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

Check password hash Test the given plain password against defined 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

RandomPassword()

RandomPassword(integer  $length = 12): boolean|string

Generate a password

Parameters

integer $length

Returns

boolean|string