decryptFileFromPathAsync method
Decrypts an encrypted file into the corresponding clear-text file.
encryptedFilePath
- The path of the encrypted file to decrypt.
Returns the path of the decrypted file.
Implementation
Future<String> decryptFileFromPathAsync(String encryptedFilePath) {
final _TransferablePointer<NativeSealdEncryptionSession> tPtr = _ptr;
return compute(
(String encryptedFilePath) => SealdEncryptionSession._(tPtr)
.decryptFileFromPath(encryptedFilePath),
encryptedFilePath);
}