ParagonIE_Sodium_Crypto32::auth

Advertisement

Summery Summery

HMAC-SHA-512-256 (a.k.a. the leftmost 256 bits of HMAC-SHA-512)

Syntax Syntax

ParagonIE_Sodium_Crypto32::auth( string $message, string $key )

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
        );
    }

Advertisement

Advertisement

Leave a Reply