Class SevenZipAESEncryptionSettings
Der Name: Aspose.Zip.Saving Versammlung: Aspose.Zip.dll (25.5.0)
Basisklasse für Einstellungen für mehrere 7z Verschlüsselungsmethoden.
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings
Inheritance
object ← SevenZipEncryptionSettings ← SevenZipAESEncryptionSettings
Vererbte Mitglieder
SevenZipEncryptionSettings.Password , SevenZipEncryptionSettings.EncryptHeader , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Die AES-256 ist die einzige mögliche Verschlüsselungsmethode für das 7z-Archiv. So ist die Aspose.Zip.Saving.SevenZipAESEncryptionSettings die einzige Implementierung.
Constructors
SiebenZipAESEncryptionSettings(String)
Initialisiert eine neue Instanz der Aspose.Zip.Saving.SevenZipAESEncryptionSettings Klasse.
public SevenZipAESEncryptionSettings(string password)
Parameters
password
string
Passwort für Verschlüsselung oder Verschlüsselung.
Examples
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
SiebenZipAESEncryptionSettings(SevenZipCipher)
Initialisiert eine neue Instanz der Aspose.Zip.Saving.SevenZipAESEncryptionSettings Klasse mit externer Zipher.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
Parameters
cipher
SevenZipCipher
Anpassung von 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");
}