AesEcryptionSettings.AesEcryptionSettings
Contents
[
Hide
]AesEcryptionSettings(string, EncryptionMethod)
Initializes a new instance of the AesEcryptionSettings
class.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameter | Type | Description |
---|---|---|
password | String | Password for encryption or decryption. |
method | EncryptionMethod | Algorithm option indicating block size of cipher. |
Exceptions
exception | condition |
---|---|
NotSupportedException | method is not one of AES128, AES192, or AES256. |
Examples
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
See Also
- enum EncryptionMethod
- class AesEcryptionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip
AesEcryptionSettings(EncryptionMethod)
Initializes a new instance of the AesEcryptionSettings
class without a password.
public AesEcryptionSettings(EncryptionMethod method)
Parameter | Type | Description |
---|---|---|
method | EncryptionMethod | Algorithm option indicating block size of cipher. |
See Also
- enum EncryptionMethod
- class AesEcryptionSettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip