Class AesEcryptionSettings
Der Name: Aspose.Zip.Saving Versammlung: Aspose.Zip.dll (25.5.0)
Basisklasse für Einstellungen für mehrere Zip-Cryption-Methoden.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
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()
Remarks
Weitere Informationen finden Sie unter https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(String, VerschlüsselungMethode)
Initialisiert eine neue Instanz der Aspose.Zip.Saving.AesEcryptionSettings Klasse.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Passwort für Verschlüsselung oder Verschlüsselung.
method
EncryptionMethod
Algorithmus-Option, die die Blockgröße der Zipher angibt.
Examples
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
Exceptions
method’ is not one of Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, or Aspose.Zip.Saving.EncryptionMethod.AES256.
AesEcryptionSettings(EncryptionMethod)
Initialisiert eine neue Instanz der Aspose.Zip.Saving.AesEcryptionSettings Klasse ohne Passwort.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Algorithmus-Option, die die Blockgröße der Zipher angibt.