hmacSha256 static method

String hmacSha256(
  1. String text,
  2. String key
)

HMAC-SHA256 hex, e.g. to sign API requests. hmacSha256(body, secret)

Implementation

static String hmacSha256(String text, String key) => _toHex(_hmac(_sha256, _u8(key), _u8(text)));