AesEcryptionSettings.AesEcryptionSettings

AesEcryptionSettings(string, EncryptionMethod)

Initialise une nouvelle instance duAesEcryptionSettings classe.

public AesEcryptionSettings(string password, EncryptionMethod method)
ParamètreTaperLa description
passwordStringMot de passe pour le chiffrement ou le déchiffrement.
methodEncryptionMethodOption d’algorithme indiquant la taille de bloc du chiffrement.

Exceptions

exceptioncondition
NotSupportedExceptionmethod 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


AesEcryptionSettings(EncryptionMethod)

Initialise une nouvelle instance duAesEcryptionSettingsclasse sans mot de passe.

public AesEcryptionSettings(EncryptionMethod method)
ParamètreTaperLa description
methodEncryptionMethodOption d’algorithme indiquant la taille de bloc du chiffrement.

Voir également