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");
}