This project is read-only.

Password not applied on zip file

Aug 6, 2010 at 11:20 AM
Hi, I encountered behaviour which I did not expect, but also don't know if I missed something in the documentation. When I zip a file without an encryption method (EncryptionAlgorithm.None), then the supplied password is not applied. When I use any other (AES/PKZipWeak), the password does get applied on the files within the zipped file. I was expecting that the password was applied without looking to the EncryptionAlgorithm. What is the intended behavior in this matter? Thanks in advance!
Aug 10, 2010 at 1:28 PM
Last write wins. If you set the password, then encrytion is automatically (implicitly) set to PkzipWeak. If you then explicilty set encryption to None, then None is what gets used. I tried to explain this in the documentation.