Class AesEcryptionSettings

Class AesEcryptionSettings

Nom dels espais: Aspose.Zip.Saving Assemblea: Aspose.Zip.dll (25.5.0)

Classes de base per a les configuracions per a diversos mètodes de xifració zip.

public class AesEcryptionSettings : EncryptionSettings

Inheritance

object EncryptionSettings AesEcryptionSettings

Membres heretats

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

Remarks

Veure més a https://www.winzip.com/win/en/aes_info.html

Constructors

AesEcryptionSettings(Mètode, Mètode de criptació)

Inicia una nova instància de la classe Aspose.Zip.Saving.AesEcryptionSettings.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parameters

password string

Password per a la xifració o decrypci.

method EncryptionMethod

Opció d’algoritme que indica la mida de bloc 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

NotSupportedException

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 nova instància de la classe Aspose.Zip.Saving.AesEcryptionSettings sense cap contrasenya.

public AesEcryptionSettings(EncryptionMethod method)

Parameters

method EncryptionMethod

Opció d’algoritme que indica la mida de bloc de cipher.

 Català