Hello,
Faced a problem when a password archive created on one device could not be unzipped on another.
Here is a link to a plugin zip: https://docs.coronalabs.com/plugin/zip/index.html
-
For example, create an archive with password ‘12345’ on the server using the command:
zip -P '12345' intro.png.zip intro.png
-
… then copy archive intro.png.zip to your android path
-
… run uncompress on Lua:
local zip = require( "plugin.zip" ) local function zipListener( event ) if ( event.isError ) then print( "Error!" ) else print ( event["type"] ) --> uncompress print ( event.response[1] ) end end local zipOptions = { zipFile = "intro.png.zip", zipBaseDir = system.DocumentsDirectory, dstBaseDir = system.DocumentsDirectory, files = { "intro.png" }, listener = zipListener, password = "12345", } zip.uncompress( zipOptions )
- Result: error on any android device.