Class SevenZipEncryptionSettings
Class SevenZipEncryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
多个 7z 加密方法设置的基类。
public abstract class SevenZipEncryptionSettings
继承
object ← SevenZipEncryptionSettings
派生
继承成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
备注
AES-256 是 7z 压缩文件唯一可能的加密方法。因此,Aspose.Zip.Saving.SevenZipAESEncryptionSettings 是唯一的实现。
构造函数
SevenZipEncryptionSettings(string)
初始化 Aspose.Zip.Saving.SevenZipEncryptionSettings 类的新实例。
protected SevenZipEncryptionSettings(string password)
参数
password
string
用于加密或解密的密码。
SevenZipEncryptionSettings()
初始化 Aspose.Zip.Saving.SevenZipEncryptionSettings 类的新实例。
protected SevenZipEncryptionSettings()
属性
EncryptHeader
获取或设置指示头部加密的值。
public bool EncryptHeader { get; set; }
属性值
备注
此设置相当于 7-Zip 工具的 -mhe=on
开关。目前与头部压缩不兼容。
Password
获取或设置用于加密或解密的密码。
public string Password { get; set; }