Class AesEcryptionSettings
Nombre del espacio: Aspose.Zip.Saving Asamblea: Aspose.Zip.dll (25.5.0)
Clase de base para las configuraciones para varios métodos de cifrado zip.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
Miembros heredados
EncryptionSettings.Method ,y, EncryptionSettings.Password ,y, object.GetType() ,y, object.MemberwiseClone() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()
Remarks
Ver más en https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(Síntomas, Método de criptografía)
Inicia una nueva instancia de la clase Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
contraseña para cifrado o descifrado.
method
EncryptionMethod
Opción algorítmica que indica el tamaño del bloque de 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
method’ is not one of Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, or Aspose.Zip.Saving.EncryptionMethod.AES256.
AesEcryptionSettings(EncryptionMethod)
Inicia una nueva instancia de la clase Aspose.Zip.Saving.AesEcryptionSettings sin una contraseña.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Opción algorítmica que indica el tamaño del bloque de cipher.