I am using DotNetZip to archive files inside a zip file, using a password.
The password I use has 144 random characters.
using (var zip = new ZipFile())
{
zip.Password = "144 characters password";
zip.Encryption = EncryptionAlgorithm.WinZipAes256;
zip.CompressionLevel = Ionic.Zlib.CompressionLevel.BestSpeed;
zip.AddEntry("file1.xml", data);
zip.Save(file);
}
When I open the zip file from code behind (specifying the password), I can get the files inside.
If I open the archive using WinRar and set the password there, it tells me that the password is invalid.
What can be the reason for this issue? Can it be because the password length is too big?