Skip to content

Adding files to zip fails when using AES #506

Answered by piksel
fedepr asked this question in General
Discussion options

You must be logged in to vote

Hm, you are setting the password after the entry has been added, that probably doesn't work. Try moving the

                // Set the compression level 1~9
                zipStream.SetLevel(5);
                zipStream.Password = "PASSWORD";

to before the foreach loop.

Also, are you sure about that error message? It doesn't seem right.
If you can give me the full exception I can look into what is going on...

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by fedepr
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fedepr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #506 on August 12, 2020 08:59.