encodeHmac static method

String encodeHmac(
  1. Uint8List key,
  2. int keylen,
  3. List<int> challenge, {
  4. dynamic hmacLength = 64,
})

Creates an base 64 encoded hmac from a key that usually is the derived key, keylen, challenge and hmacLength.

Implementation

static String encodeHmac(Uint8List key, int keylen, List<int> challenge,
    {hmacLength = 64}) {
  return base64
      .encode(encodeByteHmac(key, keylen, challenge, hmacLength: hmacLength));
}