library that will let one create a password protected zip file

Hello All, In my last post, I was not clear, in the explanation of my requirement so that could be a reason for no replies

I wanted to know whether there are any Java libraries that I can use to create a password protected zip file which will be recognized by WINZIP

Will hope to hear back .

Thanks again

[330 byte] By [gradnasha] at [2007-11-27 6:31:25]
# 1

> Hello All, In my last post, I was not clear, in the

> explanation of my requirement so that could be a

> reason for no replies

>

> I wanted to know whether there are any Java libraries

> that I can use to create a password protected zip

> file which will be recognized by WINZIP

>

> Will hope to hear back .

>

> Thanks again

Look into java.util.zip for zipping files. However it does not support password protection. The other way is to look for some Java APIs on google for this purpose but none of the ones I have come across are for free.

DarumAa at 2007-7-12 17:56:15 > top of Java-index,Security,Cryptography...
# 2

> > Hello All, In my last post, I was not clear, in

> the

> > explanation of my requirement so that could be a

> > reason for no replies

> >

> > I wanted to know whether there are any Java

> libraries

> > that I can use to create a password protected zip

> > file which will be recognized by WINZIP

> >

> > Will hope to hear back .

> >

> > Thanks again

>

>

> Look into java.util.zip for zipping files. However it

> does not support password protection. The other way

> is to look for some Java APIs on google for this

> purpose but none of the ones I have come across are

> for free.

Thanks for the mail and information. So, from my understanding, there are no Java libraries that are free that will let you create a password protected zip file that WINZIP recognises.

Please let me know.

Thanks

gradnasha at 2007-7-12 17:56:15 > top of Java-index,Security,Cryptography...
# 3

> Thanks for the mail and information. So, from my

> understanding, there are no Java libraries that are

> free that will let you create a password protected

> zip file that WINZIP recognises.

>

> Please let me know.

>

> Thanks

There might be free Java APIs that could do that. I just stated that I have not come across any. You can google and see if you can find any free APIs.

The other way to do it is to write your own code for password protecting the zip files created by java.util.zip. A more time consuming solution but a solution nonetheless. But with this solution you would run into the problem of compatibility with winzip.

Another solution would be to see if you can dig out some command based zip utility (I am not sure if there is one available for Windows but gzip comes to mind on Unix based systems) and use Runtime.exce() from your java source code to execute that command.

I am not aware of any other solution. Hope this helps.

DarumAa at 2007-7-12 17:56:15 > top of Java-index,Security,Cryptography...
# 4

> > Thanks for the mail and information. So, from my

> > understanding, there are no Java libraries that

> are

> > free that will let you create a password protected

> > zip file that WINZIP recognises.

> >

> > Please let me know.

> >

> > Thanks

>

> There might be free Java APIs that could do that. I

> just stated that I have not come across any. You can

> google and see if you can find any free APIs.

>

> The other way to do it is to write your own code for

> password protecting the zip files created by

> java.util.zip. A more time consuming solution but a

> solution nonetheless. But with this solution you

> would run into the problem of compatibility with

> winzip.

>

> Another solution would be to see if you can dig out

> some command based zip utility (I am not sure if

> there is one available for Windows but gzip comes to

> mind on Unix based systems) and use Runtime.exce()

> from your java source code to execute that command.

>

> I am not aware of any other solution. Hope this helps.

thanks again for the reply.

Can you throw more light on this statement

"Another solution would be to see if you can dig out some command based zip utility (I am not sure if there is one available for Windows but gzip comes to mind on Unix based systems) and use Runtime.exce() from your java source code to execute that command."

regarding the command based zip utility, does this provide a password protected zip file, so that winzip will understand and encode it?.

Please let me know.

Thanks

gradnasha at 2007-7-12 17:56:15 > top of Java-index,Security,Cryptography...
# 5

> thanks again for the reply.

>

> Can you throw more light on this statement

>

> "Another solution would be to see if you can dig out

> some command based zip utility (I am not sure if

> there is one available for Windows but gzip comes to

> mind on Unix based systems) and use Runtime.exce()

> from your java source code to execute that command."

>

> regarding the command based zip utility, does this

> provide a password protected zip file, so that winzip

> will understand and encode it?.

>

> Please let me know.

>

> Thanks

Thats what I am hoping that you will find by searching the internet. Winzip can read a variety of zip formats. If you can find a command line utility that works like gzip (however gzip does not provide password protection) and also provides password protection, there is a good chance that Winzip will be able to open that file. Unfortunately, there is no easy solution that I am aware of.

Can you explain why you need to create password protected zip files from your source code. May be we can figure out another solution.

Thanks.

DarumAa at 2007-7-12 17:56:15 > top of Java-index,Security,Cryptography...
# 6

> > thanks again for the reply.

> >

> > Can you throw more light on this statement

> >

> > "Another solution would be to see if you can dig

> out

> > some command based zip utility (I am not sure if

> > there is one available for Windows but gzip comes

> to

> > mind on Unix based systems) and use Runtime.exce()

> > from your java source code to execute that

> command."

> >

> > regarding the command based zip utility, does this

> > provide a password protected zip file, so that

> winzip

> > will understand and encode it?.

> >

> > Please let me know.

> >

> > Thanks

>

> Thats what I am hoping that you will find by

> searching the internet. Winzip can read a variety of

> zip formats. If you can find a command line utility

> that works like gzip (however gzip does not provide

> password protection) and also provides password

> protection, there is a good chance that Winzip will

> be able to open that file. Unfortunately, there is no

> easy solution that I am aware of.

>

> Can you explain why you need to create password

> protected zip files from your source code. May be we

> can figure out another solution.

>

> Thanks.

Thanks for the response and suggestion. I will find out the reason and get

back.

gradnasha at 2007-7-12 17:56:15 > top of Java-index,Security,Cryptography...