Class SevenZipEncryptionSettings

Class SevenZipEncryptionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.2.0)

Base class for settings for several 7z encryption methods.

public abstract class SevenZipEncryptionSettings

Inheritance

objectSevenZipEncryptionSettings

Derived

SevenZipAESEncryptionSettings

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

The AES-256 is the only possible encryption method for 7z archive. So the Aspose.Zip.Saving.SevenZipAESEncryptionSettings is the only implementation.

Constructors

SevenZipEncryptionSettings(string)

Initializes a new instance of the Aspose.Zip.Saving.SevenZipEncryptionSettings class.

protected SevenZipEncryptionSettings(string password)

Parameters

password string

Password for encryption or decryption.

SevenZipEncryptionSettings()

Initializes a new instance of the Aspose.Zip.Saving.SevenZipEncryptionSettings class.

protected SevenZipEncryptionSettings()

Properties

EncryptHeader

Gets or sets a value indicating header encryption.

public bool EncryptHeader { get; set; }

Property Value

bool

Remarks

This setting is equivalent -mhe=on switch of 7-Zip tool. Currently it is incompatible with header compression.

Password

Gets or sets password for encryption or decryption.

public string Password { get; set; }

Property Value

string

 English