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
خيار الخوارزمية الذي يشير إلى حجم كتلة الشيفرة.