TijsVerkoyen\Twitter\Twitter::hmacsha1 PHP Method

hmacsha1() protected method

Build the signature for the data
protected hmacsha1 ( string $key, string $data ) : string
$key string The key to use for signing.
$data string The data that has to be signed.
return string
    protected function hmacsha1($key, $data)
    {
        return base64_encode(hash_hmac('SHA1', $data, $key, true));
    }
Twitter