src/Encode.php
private function hash(string $algorithm, string $toHash, string $secret): string
    {
        return hash_hmac($algorithm, $toHash, $secret, true);
    }
private function hash(string $algorithm, string $toHash, string $secret): string
    {
        return hash_hmac($algorithm, $toHash, $secret, true);
    }
private function hash ( string $ algorithm , string $ toHash , string $ secret ) : string { return hash_hmac ( $ algorithm , $ toHash , $ secret , true ) ; }
Hash the JWT signature string using sha256.

@param string $algorithm
@param string $toHash
@param string $secret
@return string
Hash the JWT signature string using sha256 .