encryptFile method
Implementation
@override
Future<bool> encryptFile(
String sharedSecret, String ptPath, String ctPath) async {
final result = await _methodChannel.invokeMethod<Map<dynamic, dynamic>>('encryptFile', {
'sharedSecret': sharedSecret,
'ptPath': ptPath,
'ctPath': ctPath,
});
if (result == null
|| result["opOk"] == null
) {
throw PlatformException(code: "encryptFile(): error retrieving opOk");
}
return result["opOk"];
}