encryptFileFromPathAsync method
Encrypt a clear-text file into an encrypted file, for the recipients of this session.
clearFilePath
- The path of the file to encrypt.
Returns the path of the encrypted file.
Implementation
Future<String> encryptFileFromPathAsync(String clearFilePath) {
final _TransferablePointer<NativeSealdAnonymousEncryptionSession> tPtr =
_ptr;
return compute(
(String clearFilePath) => SealdAnonymousEncryptionSession._(tPtr)
.encryptFileFromPath(clearFilePath),
clearFilePath);
}