validateData() public method
Validates if the given data is tampered. See also hashData().
public string validateData ( $data, $key, $rawHash = false )$data string
The data to be validated. The data must be previously generated by hashData(). $key string
The secret key that was previously used to generate the hash for the data in hashData(). function to see the supported hashing algorithms on your system. This must be the same as the value passed to hashData() when generating the hash