The FileEncryption type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FileEncryption |
Creates a new instance of FileEncryption object.
|
Methods
Name | Description | |
---|---|---|
BeginDecrypt(Stream, Stream, AsyncCallback, Object) |
Begins asynchronous Decrypt operation.
Decrypts data from a source stream into a target stream.
| |
BeginDecrypt(String, String, AsyncCallback, Object) |
Begins asynchronous Decrypt operation.
Decrypts a source file into a target file.
| |
BeginEncrypt(Stream, Stream, AsyncCallback, Object) |
Begins asynchronous Encrypt operation.
Encrypts data from a source stream into a target stream.
| |
BeginEncrypt(String, String, AsyncCallback, Object) |
Begins asynchronous Encrypt operation.
Encrypts a source file into a target file.
| |
Decrypt(Stream, Stream) |
Decrypts data from a source stream into a target stream.
| |
Decrypt(String, String) |
Decrypts a source file into a target file.
| |
Encrypt(Stream, Stream) |
Encrypts data from a source stream into a target stream.
| |
Encrypt(String, String) |
Encrypts a source file into a target file.
| |
EndDecrypt |
Ends an asynchronous BeginDecrypt operation.
| |
EndEncrypt |
Ends an asynchronous BeginEncrypt operation.
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetPassword(array<Byte>[]()[][]) |
Sets password for encryption and decryption.
| |
SetPassword(String) |
Sets password for encryption and decryption.
| |
SetPassword(array<Byte>[]()[][], KeyDerivationAlgorithm) |
Sets password for encryption and decryption.
| |
SetPassword(String, KeyDerivationAlgorithm) |
Sets password for encryption and decryption.
| |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
EncryptionAlgorithm |
Gets or sets the encryption algorithm used for encryption and decryption.
| |
EncryptionKeySize |
Gets or sets the encryption key size (null indicates default key size).
| |
OverwriteExistingFile |
Get or sets a value indicating whether to overwrite existing target files.
| |
XtsBlockSize |
Gets or sets XTS algorithm block size in bytes. Must be multiple of 16. Default value is 65536, maximum number is 1048576.
This is only used for AesXts.
Use smaller buffer if you read very small parts of a stream from different places, or use larger buffer if you do sequential reads of large blocks.
Setting this value might negatively impact the performance.
|