hmacSha256ToBase64 property

String get hmacSha256ToBase64

HMAC-SHA256

Implementation

String get hmacSha256ToBase64 {
  if (this.isEmptyOrNull) {
    return "";
  }
  return base64Encode(crypto.Hmac(crypto.sha256, utf8.encode(this))
      .convert(Uint8List(0))
      .bytes);
}