SevenZipAESEncryptionSettings.SevenZipAESEncryptionSettings

SevenZipAESEncryptionSettings(string)

Инициализирует новый экземплярSevenZipAESEncryptionSettings класс.

public SevenZipAESEncryptionSettings(string password)
ПараметрТипОписание
passwordStringПароль для шифрования или дешифрования.

Примеры

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

Смотрите также


SevenZipAESEncryptionSettings(SevenZipCipher)

Инициализирует новый экземплярSevenZipAESEncryptionSettings класс с внешним шифром.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
ПараметрТипОписание
cipherSevenZipCipherПользовательская реализация AES.

Примеры

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

Смотрите также