MacCrypt.HMAC({required String key, required HmacHash algo}) : _type = MacType.HMAC { var ukey = base64Decode(key); _mac = HMAC(ukey, algorithm!); }