AesEcryptionSettings.AesEcryptionSettings
Inhalt
[
Ausblenden
]AesEcryptionSettings(string, EncryptionMethod)
Initialisiert eine neue Instanz vonAesEcryptionSettings
Klasse.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameter | Typ | Beschreibung |
---|---|---|
password | String | Passwort für die Verschlüsselung oder Entschlüsselung. |
method | EncryptionMethod | Algorithmusoption, die die Blockgröße der Chiffre angibt. |
Ausnahmen
Ausnahme | Bedingung |
---|---|
NotSupportedException | method 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
- enum EncryptionMethod
- class AesEcryptionSettings
- namensraum Aspose.Zip.Saving
- Montage Aspose.Zip
AesEcryptionSettings(EncryptionMethod)
Initialisiert eine neue Instanz vonAesEcryptionSettings
Klasse ohne Passwort.
public AesEcryptionSettings(EncryptionMethod method)
Parameter | Typ | Beschreibung |
---|---|---|
method | EncryptionMethod | Algorithmusoption, die die Blockgröße der Chiffre angibt. |
Siehe auch
- enum EncryptionMethod
- class AesEcryptionSettings
- namensraum Aspose.Zip.Saving
- Montage Aspose.Zip