hashData() public method
Prefixes data with a keyed hash value so that it can later be detected if it is tampered. There is no need to hash inputs or outputs of encryptByKey() or encryptByPassword() as those methods perform the task. See also:
validateData()
generateRandomKey()
hkdf()
pbkdf2()
public string hashData ( $data, $key, $rawHash = false )$data string
The data to be protected $key string
The secret key to be used for generating hash. Should be a secure cryptographic key. $ra