Class AesEcryptionSettings
名称: Aspose.Zip.Saving 收藏: Aspose.Zip.dll (25.5.0)
基类为多个 zip 加密方法的设置。
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
继承人
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
查看更多 https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(密码,加密方法)
启动 Aspose.Zip.Saving.AesEcryptionSettings 类的新例子。
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
密码加密或解密。
method
EncryptionMethod
算法选项表明芯片的区块大小。
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");
}
Exceptions
method’ is not one of Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, or Aspose.Zip.Saving.EncryptionMethod.AES256.
AesEcryptionSettings(EncryptionMethod)
启动一个新的例子 Aspose.Zip.Saving.AesEcryptionSettings 类没有密码。
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
算法选项表明芯片的区块大小。