sign static method

List<int> sign(
  1. List<int> key,
  2. String message
)

Implementation

static List<int> sign(List<int> key, String message) {
  final hmac = Hmac(sha256, key);
  final dig = hmac.convert(utf8.encode(message));
  return dig.bytes;
}