Class AesEcryptionSettings

Class AesEcryptionSettings

ja nimityö: Aspose.Zip.Saving Kokoelma: Aspose.Zip.dll (25.5.0)

Perusluokka asetuksille useille zip salausmenetelmille.

public class AesEcryptionSettings : EncryptionSettings

Inheritance

object EncryptionSettings AesEcryptionSettings

Perintöjäsenet

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

Remarks

Katso lisää osoitteesta https://www.winzip.com/win/en/aes_info.html

Constructors

AesEcryptionSettings(Tietokone, EncryptionMethod)

Aloita uusi esimerkki Aspose.Zip.Saving.AesEcryptionSettings luokan.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parameters

password string

salasanan salaus tai salaus.

method EncryptionMethod

Algorithm vaihtoehto, joka osoittaa lohko koko 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)

Aloita uusi esimerkki Aspose.Zip.Saving.AesEcryptionSettings luokka ilman salasanaa.

public AesEcryptionSettings(EncryptionMethod method)

Parameters

method EncryptionMethod

Algorithm vaihtoehto, joka osoittaa lohko koko cipher.

 Suomi