Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Which lib should I use when I want to zip multi-folders and set it a password ?
I just want to generate a .zip file of 4 folders (in which is filled with many .png files),and I want to set a password of this .zip file,so I searched some choices on the Internet.I found QuaZip but it doesn't have a password-add-in function until now.
Is there anyone having any advice on that?
VRonin last edited by
None of the Qt wrappers I know of manage the password protection. You will have to use the C API of zlib directly. Instructions can be found here: https://falsinsoft.blogspot.co.uk/2012/03/create-password-protected-zip-file.html
Be sure to use the latest version of the libraries as there's a bug in previous versions that decrypt the files even if a wrong password is entered
Thx and I will study how to use it
I write a simple class which wrapped zlib (and minizip) ,if u are interested in zip multi-folders and set the file a password , look github here:
Really want this could help.