AesEcryptionSettings.AesEcryptionSettings
Contenu
[
Cacher
]AesEcryptionSettings(string, EncryptionMethod)
Initialise une nouvelle instance duAesEcryptionSettings
classe.
public AesEcryptionSettings(string password, EncryptionMethod method)
Paramètre | Taper | La description |
---|---|---|
password | String | Mot de passe pour le chiffrement ou le déchiffrement. |
method | EncryptionMethod | Option d’algorithme indiquant la taille de bloc du chiffrement. |
Exceptions
exception | condition |
---|---|
NotSupportedException | method n’est pas l’un desAES128 ,AES192 , ouAES256. |
Exemples
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
Voir également
- enum EncryptionMethod
- class AesEcryptionSettings
- espace de noms Aspose.Zip.Saving
- Assemblée Aspose.Zip
AesEcryptionSettings(EncryptionMethod)
Initialise une nouvelle instance duAesEcryptionSettings
classe sans mot de passe.
public AesEcryptionSettings(EncryptionMethod method)
Paramètre | Taper | La description |
---|---|---|
method | EncryptionMethod | Option d’algorithme indiquant la taille de bloc du chiffrement. |
Voir également
- enum EncryptionMethod
- class AesEcryptionSettings
- espace de noms Aspose.Zip.Saving
- Assemblée Aspose.Zip