Class AesEcryptionSettings
Nome do espaço: Aspose.Zip.Saving Assembleia: Aspose.Zip.dll (25.5.0)
Classe de base para configurações para vários métodos de criptografia zip.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
Membros herdados
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Veja mais em https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(Método, Método de Criptografia)
Inicia uma nova instância da classe Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Password para criptografia ou decrypção.
method
EncryptionMethod
Opção de algoritmo que indica o tamanho do bloco do 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 uma nova instância da classe Aspose.Zip.Saving.AesEcryptionSettings sem uma senha.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Opção de algoritmo que indica o tamanho do bloco do cipher.