Class EncryptionMethods
Enumeration representing different encryption methods.
Inheritance
Namespace: IronZip.Enum
Assembly: IronZip.dll
Syntax
public sealed class EncryptionMethods : Enum
EncryptionMethods selects how an IronZip archive is encrypted. AES256 and AES128 apply modern AES encryption, with AES256 the stronger of the two, while Traditional uses legacy ZIP 2.0 encryption for compatibility with older tools that cannot read AES. Assign the value to ZipSaveOptions.EncryptionMethod, or pass it to IronZipArchive.Encrypt or SetPassword alongside the password. The password-protect ZIP example shows it in a complete save, and the access-protected ZIP example covers reading one back.
options.EncryptionMethod = EncryptionMethods.AES256;Fields
AES128
AES 128-bit password-based encryption method.
Declaration
public const EncryptionMethods AES128
Field Value
| Type | Description |
|---|---|
| EncryptionMethods |
AES256
AES 256-bit password-based encryption method.
Declaration
public const EncryptionMethods AES256
Field Value
| Type | Description |
|---|---|
| EncryptionMethods |
Traditional
Traditional password-based encryption method.
Declaration
public const EncryptionMethods Traditional
Field Value
| Type | Description |
|---|---|
| EncryptionMethods |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |