-
Zip And Jar
Hi everyone,
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
Thank You
Yours Sincerely
Richard West
-
Hi Richard,
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
Graham
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 ;-)
http://www.grahamrobinsonsoftware.com
-
Richard:
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks