AesEcryptionSettings.AesEcryptionSettings

AesEcryptionSettings(string, EncryptionMethod)

Initialisiert eine neue Instanz vonAesEcryptionSettings Klasse.

public AesEcryptionSettings(string password, EncryptionMethod method)
ParameterTypBeschreibung
passwordStringPasswort für die Verschlüsselung oder Entschlüsselung.
methodEncryptionMethodAlgorithmusoption, die die Blockgröße der Chiffre angibt.

Ausnahmen

AusnahmeBedingung
NotSupportedExceptionmethod ist keiner vonAES128 ,AES192 , oderAES256.

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");
}

Siehe auch


AesEcryptionSettings(EncryptionMethod)

Initialisiert eine neue Instanz vonAesEcryptionSettingsKlasse ohne Passwort.

public AesEcryptionSettings(EncryptionMethod method)
ParameterTypBeschreibung
methodEncryptionMethodAlgorithmusoption, die die Blockgröße der Chiffre angibt.

Siehe auch