Class AesEcryptionSettings

Class AesEcryptionSettings

Název místa: Aspose.Zip.Saving Sbírka: Aspose.Zip.dll (25.5.0)

Základní třída pro nastavení několika zip šifrovací metody.

public class AesEcryptionSettings : EncryptionSettings

Inheritance

object EncryptionSettings AesEcryptionSettings

Dědiční členové

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

Remarks

Více najdete na stránkách https://www.winzip.com/win/en/aes_info.html

Constructors

AesEcryptionSettings(Štítek, EncryptionMethod)

Začíná nový příklad třídy Aspose.Zip.Saving.AesEcryptionSettings.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parameters

password string

heslo pro šifrování nebo dešifrován.

method EncryptionMethod

Možnost algoritmu naznačuje velikost bloků čip.

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)

Začíná nový příklad třídy Aspose.Zip.Saving.AesEcryptionSettings bez hesla.

public AesEcryptionSettings(EncryptionMethod method)

Parameters

method EncryptionMethod

Možnost algoritmu naznačuje velikost bloků čip.

 Čeština