Summery Summery
HMAC-SHA-512-256 (a.k.a. the leftmost 256 bits of HMAC-SHA-512)
Syntax Syntax
Parameters Parameters
- $message
-
(Required)
- $key
-
(Required)
Return Return
(string)
Source Source
File: wp-includes/sodium_compat/src/Crypto32.php
public static function auth($message, $key)
{
return ParagonIE_Sodium_Core32_Util::substr(
hash_hmac('sha512', $message, $key, true),
0,
32
);
}