src/includes/classes/Core/Utils/Sha256.php
public function keyedHash(string $string, string $key = ''): string
    {
        if (!$key && !($key = $this->App->Config->©hash['©key'])) {
            throw $this->c::issue('Missing HMAC hash key.');
        }
        return hash_hmac('sha256', $string, $key);
    }
public function keyedHash(string $string, string $key = ''): string
    {
        if (!$key && !($key = $this->App->Config->©hash['©key'])) {
            throw $this->c::issue('Missing HMAC hash key.');
        }
        return hash_hmac('sha256', $string, $key);
    }
Generates a keyed SHA-256 signature.

@since 150424 Initial release.

@param string $string String to sign.
@param string $key    Encryption key.

@return string SHA-256 signature string (64 bytes).