SevenZipAESEncryptionSettings.SevenZipAESEncryptionSettings

SevenZipAESEncryptionSettings(string)

Menginisialisasi instance baru dariSevenZipAESEncryptionSettings kelas.

public SevenZipAESEncryptionSettings(string password)
ParameterJenisKeterangan
passwordStringKata sandi untuk enkripsi atau dekripsi.

Contoh

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

Lihat juga


SevenZipAESEncryptionSettings(SevenZipCipher)

Menginisialisasi instance baru dariSevenZipAESEncryptionSettings kelas dengan sandi eksternal.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
ParameterJenisKeterangan
cipherSevenZipCipherImplementasi AES khusus.

Contoh

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

Lihat juga