Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

اسم الفضاء : Aspose.Zip.Saving تجميع: Aspose.Zip.dll (25.5.0)

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

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

Inheritance

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

سبعة أجزاء من التشفير(الستار)

يبدأ مثالًا جديدًا من فئة 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");
}

سبعة أجزاء من التشفير(SevenZipCipher)

يبدأ مثالًا جديدًا من فئة Aspose.Zip.Saving.SevenZipAESEncryptionSettings مع رقائق خارجية.

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