Class AesEcryptionSettings
Названий на: Aspose.Zip.Saving Асамблея: Aspose.Zip.dll (25.5.0)
Базовий клас для налаштувань для декількох методів шифрування zip.
public class AesEcryptionSettings : EncryptionSettingsInheritance
object ← EncryptionSettings ← AesEcryptionSettings
Нападні члени
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Дивитись більше на https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(Шрифт, метод шифрування)
Ініціалює новий приклад класу Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)Parameters
password string
Пароль для шифрування або дешифрування.
method EncryptionMethod
Алгоритмний варіант, що вказує на розмір блоку циферу.
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)
Ініціалює новий приклад класу Aspose.Zip.Saving.AesEcryptionSettings без пароля.
public AesEcryptionSettings(EncryptionMethod method)Parameters
method EncryptionMethod
Алгоритмний варіант, що вказує на розмір блоку циферу.