Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Nama dari : Aspose.Zip.Saving Perhitungan: Aspose.Zip.dll (25.5.0)

Kelas dasar untuk pengaturan untuk beberapa metode enkripsi 7z.

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

Inheritance

object SevenZipEncryptionSettings SevenZipAESEncryptionSettings

anggota yang diwarisi

SevenZipEncryptionSettings.Password , SevenZipEncryptionSettings.EncryptHeader , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

AES-256 adalah satu-satunya metode enkripsi yang mungkin untuk arkib 7z. Jadi Aspose.Zip.Saving.SevenZipAESEncryptionSettings adalah satu-satunya implementasi.

Constructors

7 Pengaturan Encryption(String)

Initifikasi contoh baru dari kelas Aspose.Zip.Saving.SevenZipAESEncryptionSettings.

public SevenZipAESEncryptionSettings(string password)

Parameters

password string

kata sandi untuk enkripsi atau decryption.

Examples

using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}

7 Pengaturan Encryption(SevenZipCipher)

Inicialisasi contoh baru dari kelas Aspose.Zip.Saving.SevenZipAESEncryptionSettings dengan ciper eksternal.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)

Parameters

cipher SevenZipCipher

Pelaksanaan AES yang disesuaikan

Examples

SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}
 Indonesia