hmacSha1 property
Implementation
static final SignatureMethod hmacSha1 =
SignatureMethod('HMAC-SHA1', (String key, String text) {
final Hmac hmac = Hmac(sha1, key.codeUnits);
final List<int> bytes = hmac.convert(text.codeUnits).bytes;
// The output of the HMAC signing function is a binary
// string. This needs to be base64 encoded to produce
// the signature string.
return base64.encode(bytes);
});