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

7 Завантажити завантаження(стрічка)

Ініціалює новий приклад класу 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 з зовнішнім чипшером.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)

Parameters

cipher SevenZipCipher

Використання персоналізованої АЕС.

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");
}
 Українська