encryptFileFromPathAsync method

Future<String> encryptFileFromPathAsync(
  1. String clearFilePath
)

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<NativeSealdEncryptionSession> tPtr = _ptr;
  return compute(
      (String clearFilePath) =>
          SealdEncryptionSession._(tPtr).encryptFileFromPath(clearFilePath),
      clearFilePath);
}