Class AesEcryptionSettings
Nazwa przestrzeń: Aspose.Zip.Saving Zestawienie: Aspose.Zip.dll (25.5.0)
Klasa podstawowa dla ustawień dla kilku metod szyfrowania zip.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
Dziedziczeni członkowie
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Zobacz więcej na stronie https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(String, Metoda szyfrowania)
Inicjalizuje nowy przykład klasy Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Hasło do szyfrowania lub dekrypcji.
method
EncryptionMethod
Opcja algorytmu wskazująca wielkość bloku cipera.
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)
Inicjalizuje nową instancję klasy Aspose.Zip.Saving.AesEcryptionSettings bez hasła.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Opcja algorytmu wskazująca wielkość bloku cipera.