<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Reading Password-Protected ZIP Files in Java</title>
	<atom:link href="http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
	<description>Sharing useful tips from my &#34;weekend projects&#34;</description>
	<lastBuildDate>Thu, 29 Jul 2010 15:00:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: leon</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-169</link>
		<dc:creator>leon</dc:creator>
		<pubDate>Thu, 29 Jul 2010 12:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-169</guid>
		<description>ICSharpCode.SharpZipLib</description>
		<content:encoded><![CDATA[<p>ICSharpCode.SharpZipLib</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-167</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 13 Jul 2010 13:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-167</guid>
		<description>I&#039;m not a C# expert. Not sure what libraries in .NET are available for handling ZIP files.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not a C# expert. Not sure what libraries in .NET are available for handling ZIP files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BILL</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-166</link>
		<dc:creator>BILL</dc:creator>
		<pubDate>Mon, 05 Jul 2010 03:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-166</guid>
		<description>What you writed is excellent！Thank you !</description>
		<content:encoded><![CDATA[<p>What you writed is excellent！Thank you !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niraj</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-165</link>
		<dc:creator>Niraj</dc:creator>
		<pubDate>Sat, 03 Jul 2010 11:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-165</guid>
		<description>how unzip if i do not know the password.</description>
		<content:encoded><![CDATA[<p>how unzip if i do not know the password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niraj</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-164</link>
		<dc:creator>Niraj</dc:creator>
		<pubDate>Sat, 03 Jul 2010 07:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-164</guid>
		<description>actually i am able to unzip zip file but when a password protected zip file is encountered , it fails to unzip it.</description>
		<content:encoded><![CDATA[<p>actually i am able to unzip zip file but when a password protected zip file is encountered , it fails to unzip it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niraj</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-163</link>
		<dc:creator>Niraj</dc:creator>
		<pubDate>Sat, 03 Jul 2010 07:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-163</guid>
		<description>hi martin,
can above code be implemented in c#.</description>
		<content:encoded><![CDATA[<p>hi martin,<br />
can above code be implemented in c#.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Junmat</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-162</link>
		<dc:creator>Junmat</dc:creator>
		<pubDate>Mon, 28 Jun 2010 11:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-162</guid>
		<description>Yes, I have already tried unzipping unencrypted zip file and it is fast. This should be fast because most of my zip files have 3 to 4 files inside. I&#039;ll try to look up your code and see if I can make some adjustments. Thanks for the code by the way. :)</description>
		<content:encoded><![CDATA[<p>Yes, I have already tried unzipping unencrypted zip file and it is fast. This should be fast because most of my zip files have 3 to 4 files inside. I&#8217;ll try to look up your code and see if I can make some adjustments. Thanks for the code by the way. <img src='http://blog.alutam.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-161</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Mon, 28 Jun 2010 10:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-161</guid>
		<description>Please try using a plain ZipInputStream with an unencrypted zip file (same content, but no password) and see how fast/slow is that. In case it is much faster, you can try to see if you can optimize my ZipDecryptInputStream with a profiler. In case it is similarly slow reading unencrypted zip files with plain ZipInputStream, looks like you will have to find some other way of unzipping archives.</description>
		<content:encoded><![CDATA[<p>Please try using a plain ZipInputStream with an unencrypted zip file (same content, but no password) and see how fast/slow is that. In case it is much faster, you can try to see if you can optimize my ZipDecryptInputStream with a profiler. In case it is similarly slow reading unencrypted zip files with plain ZipInputStream, looks like you will have to find some other way of unzipping archives.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Junmat</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-160</link>
		<dc:creator>Junmat</dc:creator>
		<pubDate>Mon, 28 Jun 2010 10:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-160</guid>
		<description>Hi! I used your code for my android project. It works for me but it is very slow. This is my code:
FileInputStream fis = new FileInputStream(f);
ZipDecryptInputStream zdis = new ZipDecryptInputStream(fis,&quot;letmelearn~!@#$%&quot;);
ZipInputStream zis = new ZipInputStream(zdis);
ZipEntry ze;
while((ze = zis.getNextEntry()) != null){
	if(ze.getName().equals(&quot;0001_2_01.jpg){
		 Bitmap bm = BitmapFactory.decodeStream(zis); // this takes over 3        minutes to continue
     	         break;
	}
}

So, I tried the code you posted here and not changing anything but it still very slow. Do you know what causes this problem? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi! I used your code for my android project. It works for me but it is very slow. This is my code:<br />
FileInputStream fis = new FileInputStream(f);<br />
ZipDecryptInputStream zdis = new ZipDecryptInputStream(fis,&#8221;letmelearn~!@#$%&#8221;);<br />
ZipInputStream zis = new ZipInputStream(zdis);<br />
ZipEntry ze;<br />
while((ze = zis.getNextEntry()) != null){<br />
	if(ze.getName().equals(&#8220;0001_2_01.jpg){<br />
		 Bitmap bm = BitmapFactory.decodeStream(zis); // this takes over 3        minutes to continue<br />
     	         break;<br />
	}<br />
}</p>
<p>So, I tried the code you posted here and not changing anything but it still very slow. Do you know what causes this problem? Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-159</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 23 Jun 2010 08:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-159</guid>
		<description>I guess you would have to write your own ClassLoader implementation that loads classes in password-protected zips. You&#039;d still need to have this bootstrapping code (the ClassLoader implementation) in a non-protected jar or class file.</description>
		<content:encoded><![CDATA[<p>I guess you would have to write your own ClassLoader implementation that loads classes in password-protected zips. You&#8217;d still need to have this bootstrapping code (the ClassLoader implementation) in a non-protected jar or class file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
