Secciones

Zipping using password protection with Groovy

Inicio » Artículos » Zipping using password protection with Groovy
La categoría del artículo es
Escrito el 11 September 2015, 16:46


If you need to zip a bunch of files using password protection in Groovy (and of course in Java), there is a very nice library called zip4j that you can embed in your projects.


If you need to zip a bunch of files using password protection in Groovy (and of course in Java), there is a very nice library called zip4j that you can embed in your projects. Here you can find a working example to show you how to get it:

Groovy:
span style="color: #ff0000;">'net.lingala.zip4j', module='zip4j', version='1.3.2')
)

import net.lingala.zip4j.core.ZipFile
import net.lingala.zip4j.model.ZipParameters
import net.lingala.zip4j.util.Zip4jConstants
"myfile.zip""file1.txt""file2.txt""mypassword"


Espero tus comentarios...

your_ip_is_blacklisted_by sbl.spamhaus.org.