Class AesEcryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
کلاس پایه برای تنظیمات چندین روش رمزنگاری zip.
public class AesEcryptionSettings : EncryptionSettings
وراثت
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()
توضیحات
برای اطلاعات بیشتر به https://www.winzip.com/win/en/aes_info.html مراجعه کنید.
سازندهها
AesEcryptionSettings(string, EncryptionMethod)
یک نمونه جدید از کلاس Aspose.Zip.Saving.AesEcryptionSettings را راهاندازی میکند.
public AesEcryptionSettings(string password, EncryptionMethod method)
پارامترها
password
string
رمز عبور برای رمزنگاری یا رمزگشایی.
method
EncryptionMethod
گزینه الگوریتم که اندازه بلوک رمز را نشان میدهد.
مثالها
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
استثناها
method
یکی از Aspose.Zip.Saving.EncryptionMethod.AES128، Aspose.Zip.Saving.EncryptionMethod.AES192، یا Aspose.Zip.Saving.EncryptionMethod.AES256 نیست.
AesEcryptionSettings(EncryptionMethod)
یک نمونه جدید از کلاس Aspose.Zip.Saving.AesEcryptionSettings را بدون رمز عبور راهاندازی میکند.
public AesEcryptionSettings(EncryptionMethod method)
پارامترها
method
EncryptionMethod
گزینه الگوریتم که اندازه بلوک رمز را نشان میدهد.