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
گزینه الگوریتم نشان دهنده اندازه بلوک سیفر است.