ALGORITHM_NAME
ALGORITHM_NAME
The internal name of the algorithm.
Class HmacShaTwo256 - The SHA-2 family HMAC-SHA-256 hashing algorithm object.
repetitiveHashData(string $data, integer $iterations = 2) : string
Calculates a hash value for the given data via repetitive/recursive digestion.
string | $data | The input string. |
integer | $iterations | The number of internal iterations to perform. |
Validation errors.
The digest.
verifyHash(string $data, string $digest) : boolean
Securely compares and verifies if a digestion value is for the given input data.
string | $data | The input string. |
string | $digest | The digest string. |
Validation errors.
The result of the secure comparison.