decrypt method
Implementation
@override
Future<String?> decrypt({required String passPhrase, required String concatenatedCipherText}) async {
try {
String? response = await methodChannel.invokeMethod('decrypt', {
"passPhrase": passPhrase,
"concatenatedCipherText": concatenatedCipherText,
});
if (response != null && isBase64(response)) {
log("Received decrypted value - $response");
response = base64ToString(response);
}
return response; // Res
} catch (e) {
log("Error on decrypt: $e");
return null;
}
}