WC_Session_Handler::verify_hash
Verify a hash produced by self::hash().
Method of the class: WC_Session_Handler{}
No Hooks.
Returns
bool. Whether the hash is valid.
Usage
// private - for code of main (parent) class only $result = $this->verify_hash( $message, $hash );
- $message(string) (required)
- Message to verify.
- $hash(string) (required)
- Hash to verify.
WC_Session_Handler::verify_hash() WC Session Handler::verify hash code WC 11.1.1
private function verify_hash( string $message, string $hash ) {
return hash_equals( $this->hash( $message ), $hash );
}