Class AesEcryptionSettings

Class AesEcryptionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

Basklass för inställningar för flera zip-krypteringsmetoder.

public class AesEcryptionSettings : EncryptionSettings

Arv

objectEncryptionSettingsAesEcryptionSettings

Ärvda Medlemmar

EncryptionSettings.Method, EncryptionSettings.Password, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Kommentarer

Se mer på https://www.winzip.com/win/en/aes_info.html

Konstruktörer

AesEcryptionSettings(string, EncryptionMethod)

Initierar en ny instans av Aspose.Zip.Saving.AesEcryptionSettings-klassen.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parametrar

password string

Lösenord för kryptering eller dekryptering.

method EncryptionMethod

Algoritmval som indikerar blockstorlek för chiffer.

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");
}

Undantag

NotSupportedException

method är inte en av Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192 eller Aspose.Zip.Saving.EncryptionMethod.AES256.

AesEcryptionSettings(EncryptionMethod)

Initierar en ny instans av Aspose.Zip.Saving.AesEcryptionSettings-klassen utan ett lösenord.

public AesEcryptionSettings(EncryptionMethod method)

Parametrar

method EncryptionMethod

Algoritmval som indikerar blockstorlek för chiffer.

 Svenska