Class AesEcryptionSettings
Nama dari : Aspose.Zip.Saving Perhitungan: Aspose.Zip.dll (25.5.0)
Kelas dasar untuk pengaturan untuk beberapa metode enkripsi zip.
public class AesEcryptionSettings : EncryptionSettingsInheritance
object ← EncryptionSettings ← AesEcryptionSettings
anggota yang diwarisi
EncryptionSettings.Method , EncryptionSettings.Password , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
Lihat lebih lanjut di https://www.winzip.com/win/en/aes_info.html
Constructors
AesEcryptionSettings(Metode, metode enkripsi)
Initifikasi contoh baru dari kelas Aspose.Zip.Saving.AesEcryptionSettings.
public AesEcryptionSettings(string password, EncryptionMethod method)Parameters
password string
kata sandi untuk enkripsi atau decryption.
method EncryptionMethod
Pilihan algoritma yang menunjukkan ukuran blok 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
method’ is not one of Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, or Aspose.Zip.Saving.EncryptionMethod.AES256.
AesEcryptionSettings(EncryptionMethod)
Initifikasi instansi baru dari kelas Aspose.Zip.Saving.AesEcryptionSettings tanpa kata sandi.
public AesEcryptionSettings(EncryptionMethod method)Parameters
method EncryptionMethod
Pilihan algoritma yang menunjukkan ukuran blok cipher.