if(hach_hmac("sha256", $data_check_string, $secret_key) === $info['hash']){
// data is from Telegram
}
If the third parameter of the hash_hmac function is not provided or is set to false, it will return a lowercase hexadecimal value. More information can be found at https://www.php.net/manual/ja/function.hash-hmac.php
2
Answers
I figured it out..
php equal is:
and
it is just:
Does this accurately reflect your intent?
If the third parameter of the hash_hmac function is not provided or is set to false, it will return a lowercase hexadecimal value. More information can be found at https://www.php.net/manual/ja/function.hash-hmac.php