Class AesEcryptionSettings

Class AesEcryptionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

Kelas dasar untuk pengaturan beberapa metode enkripsi zip.

public class AesEcryptionSettings : EncryptionSettings

Pewarisan

objectEncryptionSettingsAesEcryptionSettings

Anggota yang Dwarisi

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

Catatan

Lihat lebih lanjut di https://www.winzip.com/win/en/aes_info.html

Konstruktor

AesEcryptionSettings(string, EncryptionMethod)

Menginisialisasi instance baru dari kelas Aspose.Zip.Saving.AesEcryptionSettings.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parameter

password string

Kata sandi untuk enkripsi atau dekripsi.

method EncryptionMethod

Opsi algoritma yang menunjukkan ukuran blok dari cipher.

Contoh

using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.zip");
}

Pengecualian

NotSupportedException

method bukan salah satu dari Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, atau Aspose.Zip.Saving.EncryptionMethod.AES256.

AesEcryptionSettings(EncryptionMethod)

Menginisialisasi instance baru dari kelas Aspose.Zip.Saving.AesEcryptionSettings tanpa kata sandi.

public AesEcryptionSettings(EncryptionMethod method)

Parameter

method EncryptionMethod

Opsi algoritma yang menunjukkan ukuran blok dari cipher.

 Indonesia