Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Which lib should I use when I want to zip multi-folders and set it a password ?
Forum Updated to NodeBB v4.3 + New Features

Which lib should I use when I want to zip multi-folders and set it a password ?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 822 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartinChan 0
    wrote on last edited by
    #1

    Hi,everyone .
    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?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      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

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MartinChan 0
        wrote on last edited by
        #3

        Thx and I will study how to use it

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MartinChan 0
          wrote on last edited by
          #4

          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:
          https://github.com/MartinChan3/QZlib
          Really want this could help.

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved