Class AesEcryptionSettings

Class AesEcryptionSettings

Il nome: Aspose.Zip.Saving Assemblea: Aspose.Zip.dll (25.5.0)

Classi di base per le impostazioni per diversi metodi di crittografia zip.

public class AesEcryptionSettings : EncryptionSettings

Inheritance

object EncryptionSettings AesEcryptionSettings

I membri ereditari

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

Remarks

Vedi di più su https://www.winzip.com/win/en/aes_info.html

Constructors

AesEcryptionSettings(String, Metodo di crittografia)

Inizia una nuova instanza della classe Aspose.Zip.Saving.AesEcryptionSettings.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parameters

password string

Password per crittografia o decrittografia.

method EncryptionMethod

Opzione algoritmica che indica la dimensione del blocco di cipher.

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

NotSupportedException

method’ is not one of Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, or Aspose.Zip.Saving.EncryptionMethod.AES256.

AesEcryptionSettings(EncryptionMethod)

Inizia una nuova instanza della classe Aspose.Zip.Saving.AesEcryptionSettings senza una password.

public AesEcryptionSettings(EncryptionMethod method)

Parameters

method EncryptionMethod

Opzione algoritmica che indica la dimensione del blocco di cipher.

 Italiano