Class SevenZipAESEncryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
کلاس پایه برای تنظیمات چندین روش رمزنگاری 7z.
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings
وراثت
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()
توضیحات
AES-256 تنها روش رمزنگاری ممکن برای آرشیو 7z است. بنابراین Aspose.Zip.Saving.SevenZipAESEncryptionSettings تنها پیادهسازی موجود است.
سازندهها
SevenZipAESEncryptionSettings(string)
یک نمونه جدید از کلاس Aspose.Zip.Saving.SevenZipAESEncryptionSettings را راهاندازی میکند.
public SevenZipAESEncryptionSettings(string password)
پارامترها
password
string
رمز عبور برای رمزنگاری یا رمزگشایی.
مثالها
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
SevenZipAESEncryptionSettings(SevenZipCipher)
یک نمونه جدید از کلاس Aspose.Zip.Saving.SevenZipAESEncryptionSettings را با رمز خارجی راهاندازی میکند.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
پارامترها
cipher
SevenZipCipher
پیادهسازی سفارشی AES.
مثالها
SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}