Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Именује се: Aspose.Zip.Saving Асамблеја: Aspose.Zip.dll (25.5.0)

Основна класа за подешавања за неколико 7з метода шифровања.

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

АЕС-256 је једини могући метод за шифровање за 7з архиве. тако да је Асписе.Зип.Савинг.СевенЗипАЕСЦифровањеСеттингс једина имплементација.

Constructors

SedamZipAESEncryptionSettings(Стринг)

Иницијалише нову инстанцију класе 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");
}

SedamZipAESEncryptionSettings(SevenZipCipher)

Иницијалише нову инстанцију Аппосе.Зип.Савинг.СедамЗипАЕСКриптингСеттингс класа са спољним чипхером.

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");
}
 Српски