Class AesEcryptionSettings
İsim alanı : Aspose.Zip.Saving Toplama: Aspose.Zip.dll (25.5.0)
Birden fazla zip şifreleme yöntemleri için ayarlar için temel sınıf.
public class AesEcryptionSettings : EncryptionSettings
Inheritance
object ← EncryptionSettings ← AesEcryptionSettings
mirasçı üyeleri
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Daha fazlasını görmek için https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(Çerçeve, EncryptionMethod)
Aspose.Zip.Saving.AesEcryptionSettings sınıfının yeni bir örneğini başlatır.
public AesEcryptionSettings(string password, EncryptionMethod method)
Parameters
password
string
Şifreleme veya şifreleme için şifreleme.
method
EncryptionMethod
Çifre boyutunu gösteren algoritma seçeneği.
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)
Bir şifre olmadan Aspose.Zip.Saving.AesEcryptionSettings sınıfının yeni bir örneğini başlatır.
public AesEcryptionSettings(EncryptionMethod method)
Parameters
method
EncryptionMethod
Çifre boyutunu gösteren algoritma seçeneği.