Zend Framework  3.0
Public Member Functions | List of all members
PasswordInterface Interface Reference

Public Member Functions

 create ($password)
 Create a password hash for a given plain text password.
 
 verify ($password, $hash)
 Verify a password hash against a given plain text password.
 

Member Function Documentation

create (   $password)

Create a password hash for a given plain text password.

Parameters
string$passwordThe password to hash
Returns
string The formatted password hash

Implemented in Apache, Bcrypt, and BcryptSha.

verify (   $password,
  $hash 
)

Verify a password hash against a given plain text password.

Parameters
string$passwordThe password to hash
string$hashThe supplied hash to validate
Returns
bool Does the password validate against the hash

Implemented in Apache, Bcrypt, and BcryptSha.