Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Pôvodný názov: Aspose.Zip.Saving Zhromaždenie: Aspose.Zip.dll (25.5.0)

Základná trieda pre nastavenia pre niekoľko 7z šifrovania metód.

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

Inheritance

object SevenZipEncryptionSettings SevenZipAESEncryptionSettings

Z dedičných členov

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 je jedinou možnou metódou šifrovania pre 7z archív. Takže Aspose.Zip.Saving.SevenZipAESEncryptionSettings je jedinou implementáciou.

Constructors

SevenZipAESEncryptionNastavenia(Stretnutie)

Iniciuje nový príklad triedy Aspose.Zip.Saving.SevenZipAESEncryptionSettings.

public SevenZipAESEncryptionSettings(string password)

Parameters

password string

heslo na šifrovanie alebo dekódovanie.

Examples

using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}

SevenZipAESEncryptionNastavenia(SevenZipCipher)

Initalizuje novú inštanciu triedy Aspose.Zip.Saving.SevenZipAESEncryptionSettings s externým čipom.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)

Parameters

cipher SevenZipCipher

Custom implementácia 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");
}
 Slovenčina