Я пытаюсь установить AES256 с помощью DotNetZip и получаю ошибку компиляции.
Пожалуйста помоги. см. строку zip.Encryption
using (Ionic.Zip.ZipFile zip = new Ionic.Zip.ZipFile())
{
if (EncryptDoc.Checked)
{
if (masterPassword.Text == "")
{
MessageBox.Show("invalid Master password");
goto SkipZip;
}
zip.Encryption = EncryptionAlgorithm.WinZipAes256; // this is the problem line, will not compile**
zip.Password = masterPassword.Text;
}
zip.AddSelectedFiles("*.RTF", "C:\\Charles GUI\\OpenFileDialogueSample\\Drug1\\Dev1\\Output");
//
// add the report into a different directory in the archive
// zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files");
//zip.AddFile("ReadMe.txt");
zip.Save("c:\\temp\\MyZipFile.zip");
_lblPagePrint.Text = "Zip RTFs Complete";
}