ParagonIE_Sodium_Crypto::auth() public WP 1.0
HMAC-SHA-512-256 (a.k.a. the leftmost 256 bits of HMAC-SHA-512)
{} It's a method of the class: ParagonIE_Sodium_Crypto{}
No Hooks.
Return
String
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Crypto::auth( $message, $key );
- $message(string) (required)
- -
- $key(string) (required)
- -
Code of ParagonIE_Sodium_Crypto::auth() ParagonIE Sodium Crypto::auth WP 5.7
public static function auth($message, $key)
{
return ParagonIE_Sodium_Core_Util::substr(
hash_hmac('sha512', $message, $key, true),
0,
32
);
}