Class AesEcryptionSettings

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

NotSupportedException

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

خيار الخوارزميات التي تشير إلى حجم الكتلة من سيفر.

 عربي