aesDecryptFuture method
Decrypt a text using AES
Return: Decrypted text
Implementation
Future<Message> aesDecryptFuture(
String? iv,
String? encryptedText,
String? key, {
List<List<String>> encryptedTexts = const [],
List<String> keys = const [],
}) async {
var params = [];
if (encryptedText != null) {
params = [iv, encryptedText, keys];
} else {
params = [encryptedTexts, keys];
}
var resultStr = await ZeroNet.instance.cmdFuture(
ZeroNetCmd.aesDecrypt,
params: params,
);
return resultStr.message!;
}