AesEcryptionSettings.AesEcryptionSettings
Innehåll
[
Dölj
]AesEcryptionSettings(string, EncryptionMethod)
Initierar en ny instans avAesEcryptionSettings
class.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameter | Typ | Beskrivning |
---|---|---|
password | String | Lösenord för kryptering eller dekryptering. |
method | EncryptionMethod | Algoritmalternativ som indikerar blockstorlek på chiffer. |
Undantag
undantag | skick |
---|---|
NotSupportedException | method är inte en avAES128 ,AES192 , ellerAES256. |
Exempel
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
Se även
- enum EncryptionMethod
- class AesEcryptionSettings
- namnutrymme Aspose.Zip.Saving
- hopsättning Aspose.Zip
AesEcryptionSettings(EncryptionMethod)
Initierar en ny instans avAesEcryptionSettings
klass utan lösenord.
public AesEcryptionSettings(EncryptionMethod method)
Parameter | Typ | Beskrivning |
---|---|---|
method | EncryptionMethod | Algoritmalternativ som indikerar blockstorlek på chiffer. |
Se även
- enum EncryptionMethod
- class AesEcryptionSettings
- namnutrymme Aspose.Zip.Saving
- hopsättning Aspose.Zip