How to generate zip with password protection?

How to generate zip with password protection?

  

I can see Zip extension from built-in dependency I can see it's possible to decompress a zip that password protected....But how to create a zip compression with password protection?

Hi,

Didnt test it myself but did you check this https://www.outsystems.com/forums/discussion/3757/file-compressor-zip-with-password/?

Regards,

Marcelo

Thanks for the link...

I think this is duplicated thread https://www.outsystems.com/forums/discussion/3757/re-file-compressor-zip-with-password/#Post104625. You should get your answer here.

I'm using default built-in zip extension from manage dependency


I downloaded zip.xif from André Vieira as posted here https://www.outsystems.com/forums/discussion/3757/re-file-compressor-zip-with-password/#Post9539, and everything seems to be the same except his one got password as an input on CreateZip action. So I was questioning why don't this password input is on default zip extension? What's the consideration? I was aware his post was on 2008 so it was like 9 years ago.

Does it still valid? I mean everything else...is there a chance that his version was not the same as default zip extension? 

This one is from his zip.xif

Solution

Hello Eric,

I can't say why the Zip extension that comes with the platform does not accept Password protected files (generation). But as many of the tools that exists from the installation, most of them have only basic functionality. 

The solution provided by André may, or may not, work now. Being from 2008, it uses probably a zip library that is outdated (or not). 

As the ZIP that comes with the platform does not create files password protected, you have 3 options:

1. Use a forge component, like this one, that allows you to compress with password. It is still for version 9.1, but installing should not be a problem (I installed in a personal with the latest OutSystems platform version).

2. Adapt an existing extension. You can open the Zip extension or any other that you can find, and adapt it to accpet password input on Zip generation, if the library used has this possibility.

3. Create you own extension based on a library that can do that (create passord protected files).

Hope this helps.

Cheers,
Eduardo Jauch

Solution

Eduardo Jauch wrote:


1. Use a forge component, like this one, that allows you to compress with password. It is still for version 9.1, but installing should not be a problem (I installed in a personal with the latest OutSystems platform version).

May I know which forge components you recommend here?


Hi,

I never used those (always used the one that comes with the platform).

But the one that I know that have the possibility to create zip files password protected is the BigZip.

Cheers

Eduardo Jauch