PasswordService Class Reference
Detailed Description
The PasswordService class provides services for password handling.
Definition at line 18 of file PasswordService.php.
Static Public Member Functions | |
static | isHashed ($password) |
static | hash ($password) |
static | verify ($password, $passwordHash) |
Member Function Documentation
◆ isHashed()
|
static |
Check if the given password is hashed.
- Parameters
-
$password
- Returns
- boolean
Definition at line 25 of file PasswordService.php.
◆ hash()
|
static |
Hash the given cleartext password.
- Parameters
-
$password
- Returns
- String
Definition at line 35 of file PasswordService.php.
◆ verify()
|
static |
Check if the given hash represents the given password.
- Parameters
-
$password $passwordHash
- Returns
- String
Definition at line 45 of file PasswordService.php.