Update security.php

This commit is contained in:
Namhyeon Go 2021-05-22 05:11:41 +09:00 committed by GitHub
parent ea7b0e82a5
commit 9174356265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,3 +702,10 @@ if(!is_fn("expire_isolated_session")) {
session_destroy();
}
}
// Add support HmacSHA256 algorithm #137
if(!is_fn("hmacsha256_sign_message")) {
function hmacsha256_sign_message($message, $secret_key) {
return hash_hmac("sha256", $message, $secret_key);
}
}