Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

الصف الأساسي لإعدادات عدة طرق تشفير 7z.

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

الوراثة

objectSevenZipEncryptionSettingsSevenZipAESEncryptionSettings

الأعضاء الموروثة

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");
}
 عربي