Class AesEcryptionSettings

Class AesEcryptionSettings

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

Clase base para la configuración de varios métodos de cifrado zip.

public class AesEcryptionSettings : EncryptionSettings

Herencia

objectEncryptionSettingsAesEcryptionSettings

Miembros heredados

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

Observaciones

Vea más en https://www.winzip.com/win/en/aes_info.html

Constructores

AesEcryptionSettings(string, EncryptionMethod)

Inicializa una nueva instancia de la clase Aspose.Zip.Saving.AesEcryptionSettings.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parámetros

password string

Contraseña para cifrado o descifrado.

method EncryptionMethod

Opción de algoritmo que indica el tamaño de bloque del cifrado.

Ejemplos

using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.zip");
}

Excepciones

NotSupportedException

method no es uno de Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, o Aspose.Zip.Saving.EncryptionMethod.AES256.

AesEcryptionSettings(EncryptionMethod)

Inicializa una nueva instancia de la clase Aspose.Zip.Saving.AesEcryptionSettings sin una contraseña.

public AesEcryptionSettings(EncryptionMethod method)

Parámetros

method EncryptionMethod

Opción de algoritmo que indica el tamaño de bloque del cifrado.

 Español