Zip And Jar
I have a small program in which i try to encrypt a zip or jar file but here is the thing in that eveything can be decrypted and encrypted without any problems but the archives(either a jar or zip file) after decryption later cannot be read. This does not happen for other type of files. I notice this only happens to archives.
Why is this so?
I hope someone can explain to me this in detail
I don't know if it is of any help, but I had a similar problem when I wrote
a small program to download PDF files from the internet.
Other files came down correctly, but it seemed that the PDF files were corrupt.
I found in my program that I was using InputStreamReader/BufferedStream reader which I suspect was doing some cr/lf conversions in the background.
All that I really know is that I fixed it by using a plain InputStream instead.
Hope this helps
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, and if they get mad, you are a mile away and you have their shoes ;-)
Are you archiving after you encrypt, or do you archive and then encrypt? If the latter, then you are running into a problem with the interaction between encryption and the archiving format, which might include an encryption mechanism of its own ... Where have you searched for a solution to this? I would think that you are not the first to face this problem ...
Last edited by nspils; 02-21-2005 at 01:15 PM.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center