Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Název místa: Aspose.Zip.Saving Sbírka: Aspose.Zip.dll (25.5.0)

Základní třída pro nastavení několika 7z šifrovací metod.

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

Inheritance

object SevenZipEncryptionSettings SevenZipAESEncryptionSettings

Dědiční č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 metodou šifrování pro archiv 7z. Takže Aspose.Zip.Saving.SevenZipAESEncryptionSettings je jedinou implementac.

Constructors

7ZipAESEncryptionSettings(Stringová)

Začíná nový příklad třídy Aspose.Zip.Saving.SevenZipAESEncryptionSettings.

public SevenZipAESEncryptionSettings(string password)

Parameters

password string

heslo pro šifrování nebo dešifrován.

Examples

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

7ZipAESEncryptionSettings(SevenZipCipher)

Začíná nový příklad třídy Aspose.Zip.Saving.SevenZipAESEncryptionSettings s externím čipem.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)

Parameters

cipher SevenZipCipher

Přizpůsobená implementace 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");
}
 Čeština