hmacSha1 function

String hmacSha1(
  1. String msg,
  2. String key
)

使用HMAC-SHA1计算摘要

Implementation

String hmacSha1(String msg, String key) {
  return hex.encode(Hmac(sha1, key.codeUnits).convert(msg.codeUnits).bytes);
}