From 9174356265be6e5d0b2c3e5f50c6de6cac596750 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 22 May 2021 05:11:41 +0900 Subject: [PATCH] Update security.php --- system/security.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/security.php b/system/security.php index 3b710b4..bf41650 100644 --- a/system/security.php +++ b/system/security.php @@ -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); + } +}