Class AesEcryptionSettings

Class AesEcryptionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

Basis-Klasse für Einstellungen für mehrere ZIP-Verschlüsselungsmethoden.

public class AesEcryptionSettings : EncryptionSettings

Vererbung

objectEncryptionSettingsAesEcryptionSettings

Vererbte Mitglieder

EncryptionSettings.Method, EncryptionSettings.Password, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Bemerkungen

Siehe mehr unter https://www.winzip.com/win/en/aes_info.html

Konstruktoren

AesEcryptionSettings(string, EncryptionMethod)

Initialisiert eine neue Instanz der Klasse Aspose.Zip.Saving.AesEcryptionSettings.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parameter

password string

Passwort für die Verschlüsselung oder Entschlüsselung.

method EncryptionMethod

Algorithmusoption, die die Blockgröße des Chiffriers angibt.

Beispiele

using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.zip");
}

Ausnahmen

NotSupportedException

method ist nicht eine der Optionen Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192 oder Aspose.Zip.Saving.EncryptionMethod.AES256.

AesEcryptionSettings(EncryptionMethod)

Initialisiert eine neue Instanz der Klasse Aspose.Zip.Saving.AesEcryptionSettings ohne Passwort.

public AesEcryptionSettings(EncryptionMethod method)

Parameter

method EncryptionMethod

Algorithmusoption, die die Blockgröße des Chiffriers angibt.

 Deutsch