\Dalenys_Api_Hash_Hashable

Interface for hashing

Summary

Methods
Constants
compute()
checkHash()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

compute()

compute(string  $password, array  $params = array()) : string

Compute a hash

Parameters

string $password

The secret key

array $params

The parameters to compute

Returns

string —

The hashed string

checkHash()

checkHash(  $password, array  $params = array()) : boolean

Verify a HASH

Parameters

$password

The secret key

array $params

The parameters (should include a HASH parameter)

Returns

boolean