FileEncryption.DecryptAsync Method
Namespace: Rebex.Security
Assembly: Rebex.Security.dll (version 7.0.9119)
DecryptAsync(String, String, Object)
Begins asynchronous Decrypt operation. Decrypts a source file into a target file.
Declaration
public Task DecryptAsync(string sourceFile, string targetFile, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | sourceFile | The file to decrypt. |
String | targetFile | The name of the decrypted file. This cannot be a directory. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
DecryptAsync(Stream, Stream, Object)
Begins asynchronous Decrypt operation. Decrypts data from a source stream into a target stream.
Declaration
public Task DecryptAsync(Stream sourceStream, Stream targetStream, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Stream | sourceStream | Readable stream with encrypted data. |
Stream | targetStream | Writable stream that will receive the decrypted data. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |