Class SevenZipAESEncryptionSettings
نام ها : Aspose.Zip.Saving جمع آوری: Aspose.Zip.dll (25.5.0)
کلاس پایه برای تنظیمات برای چندین روش رمزگذاری 7Z.
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettingsInheritance
object ← SevenZipEncryptionSettings ← SevenZipAESEncryptionSettings
اعضای ارثی
SevenZipEncryptionSettings.Password , SevenZipEncryptionSettings.EncryptHeader , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
AES-256 تنها روش رمزگذاری ممکن برای آرشیو 7Z است. بنابراین Aspose.Zip.Saving.SevenZipAESEncryptionSettings تنها پیاده سازی است.
Constructors
7تصمیم گیری برای رمزگذاری(String)
شروع یک مثال جدید از کلاس Aspose.Zip.Saving.SevenZipAESEncryptionSettings.
public SevenZipAESEncryptionSettings(string password)Parameters
password string
رمز عبور برای رمزگذاری یا رمزگذاری
Examples
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}7تصمیم گیری برای رمزگذاری(SevenZipCipher)
شروع یک مثال جدید از کلاس Aspose.Zip.Saving.SevenZipAESEncryptionSettings با cipher خارجی.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)Parameters
cipher SevenZipCipher
استفاده از AES سفارشی
Examples
SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}