hmacSha256 static method

String hmacSha256(
  1. String message,
  2. String secret
)

Implementation

static String hmacSha256(String message, String secret) {
  var bytesHmac = hmacBytes(message, secret, SHA256Digest(), 64);
  return hex.encode(bytesHmac);
}