Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

how to deal with encrypted zip in JAVA?

Thread view: 
leo - 09 Sep 2007 03:46 GMT
Now I has a zip file and I want to know how to encrypt it with normal
zip-encrypted in java then users will be prompted to input the
password when it is opened with WinZip or WinRAR.
I have tried with org.apache.fulcrum.jce.crypto but it can not be
opened with WinZip.
Roedy Green - 09 Sep 2007 10:08 GMT
>Now I has a zip file and I want to know how to encrypt it with normal
>zip-encrypted in java then users will be prompted to input the
>password when it is opened with WinZip or WinRAR.
>I have tried with org.apache.fulcrum.jce.crypto but it can not be
>opened with WinZip.

see http://mindprod.com/jgloss/zip.html#ENCRYPTION
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

leo - 10 Sep 2007 04:14 GMT
Thanks!
I've seen http://mindprod.com/jgloss/zip.html#ENCRYPTION ,
but it seems that JCE doesn't suppots the ZIP2.0,
I have to use ZIP2.0 to encrypt zip files.
Do you have any other methods?
Roedy Green - 10 Sep 2007 06:38 GMT
>Thanks!
>I've seen http://mindprod.com/jgloss/zip.html#ENCRYPTION ,
>but it seems that JCE doesn't suppots the ZIP2.0,
>I have to use ZIP2.0 to encrypt zip files.
>Do you have any other methods?

Sit down.  I have bad news.
What you will need to do is encrypt on an element by element basis.
You are not going to get code that WinZip can encrypt.  You will need
your code at the other end to decrypt.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

leo - 10 Sep 2007 06:46 GMT
Thanks again!
so you can tell me where to find docs about zip 2.0 encryption
arithmetic,
I mean if it's possible that I write codes to implements encryption
and decryption?
Roedy Green - 10 Sep 2007 07:43 GMT
>Thanks again!
>so you can tell me where to find docs about zip 2.0 encryption
>arithmetic,
>I mean if it's possible that I write codes to implements encryption
>and decryption?

See http://mindprod.com/jgloss/zip.html
Follow the link to the file format.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.