verifyHash()
verifyHash(string $data, string $digest) : boolean
Securely compares and verifies if a digestion value is for the given input data.
Parameters
| string | $data | The input string. |
| string | $digest | The digest string. |
Throws
- \Exception
Validation errors.
Returns
boolean —The result of the secure comparison.