PasswordService Class Reference

Detailed Description

The PasswordService class provides services for password handling.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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 isHashed (   $password)
static

Check if the given password is hashed.

Parameters
$password
Returns
boolean

Definition at line 25 of file PasswordService.php.

◆ hash()

static hash (   $password)
static

Hash the given cleartext password.

Parameters
$password
Returns
String

Definition at line 35 of file PasswordService.php.

◆ verify()

static verify (   $password,
  $passwordHash 
)
static

Check if the given hash represents the given password.

Parameters
$password
$passwordHash
Returns
String

Definition at line 45 of file PasswordService.php.