Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Zip plugin - password protection
Started by runewinse Nov 23 2019 06:29 AM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

runewinse

[GLOBAL: userInfoPane.html]
runewinse
  • Contributor

  • 505 posts
  • Corona SDK

If I use zip.compress with the password option, my zip file is compressed, but I'm not able to uncompress it with an external (un)compression program.

 

I'm using zip.compress to compress the log files from my users.

 

      local zipOptions = {
        zipFile = "log.zip",
        zipBaseDir = system.DocumentsDirectory,
        srcBaseDir = system.DocumentsDirectory,
        srcFiles = { "log.txt" },
        listener = zipListener,
        password = "dramegbaklengs",
      }
      zip.compress( zipOptions )
 
When I try to unzip this file I get a message that it's encrypted, but if I write the password I get a message that the password is wrong. If tried many different passwords of different complexity.
 
The external zipper program that I use is Bandizip6.24 as well as directly on Windows 10.
 
Is this encryption only meant to work internally with zip.compress/uncompress, or is something wrong?


[TOPIC: post.html]
#2

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Enthusiast

  • 50 posts
  • Corona SDK

You could try setting pw to something short like ”a” and see if that works. If it dosnt work, you can try a free brute force zip opener to see what the actual pw is. Then you can find what the problem might be

[TOPIC: post.html]
#3

runewinse

[GLOBAL: userInfoPane.html]
runewinse
  • Contributor

  • 505 posts
  • Corona SDK

Hehe, reverse engineering? Surely this is not a state secret? Somebody must know if this is a bug or by design?

 

Just found out that it works on a Mac, but not in Windows... Didn´t know zip wasn´t zip.




[topic_controls]
[/topic_controls]