<?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 for Cocoaphony</title>
	<atom:link href="http://robnapier.net/blog/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://robnapier.net/blog</link>
	<description>Mac and iPhone, on the brain</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:51:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Properly encrypting with AES with CommonCrypto by Rob Napier</title>
		<link>http://robnapier.net/blog/aes-commoncrypto-564/comment-page-1#comment-15188</link>
		<dc:creator>Rob Napier</dc:creator>
		<pubDate>Thu, 02 Feb 2012 16:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=564#comment-15188</guid>
		<description>&lt;p&gt;The salt and IV that are generated during encryption should be stored with the ciphertext and sent to the decryptor (you will notice that these are returned by reference). The decryptor then uses the same salt and IV.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The salt and IV that are generated during encryption should be stored with the ciphertext and sent to the decryptor (you will notice that these are returned by reference). The decryptor then uses the same salt and IV.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Properly encrypting with AES with CommonCrypto by Ranjit</title>
		<link>http://robnapier.net/blog/aes-commoncrypto-564/comment-page-1#comment-15186</link>
		<dc:creator>Ranjit</dc:creator>
		<pubDate>Thu, 02 Feb 2012 14:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=564#comment-15186</guid>
		<description>&lt;p&gt;Hey rob,your article is very informative , and I am using your code,but I have a doubt, according to your code snippet above, you said to pass the IV and salt while encryption, but in the function encrypteddatafordata ,it uses random salt and IV.so if it uses random generator to produce salt and IV ,then how it can be decrypted on server side,also what salt and IV should be,( a number or string)..waiting for your reply&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey rob,your article is very informative , and I am using your code,but I have a doubt, according to your code snippet above, you said to pass the IV and salt while encryption, but in the function encrypteddatafordata ,it uses random salt and IV.so if it uses random generator to produce salt and IV ,then how it can be decrypted on server side,also what salt and IV should be,( a number or string)..waiting for your reply</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Drop-in offline caching for UIWebView (and NSURLProtocol) by Seth Pollack</title>
		<link>http://robnapier.net/blog/offline-uiwebview-nsurlprotocol-588/comment-page-1#comment-15154</link>
		<dc:creator>Seth Pollack</dc:creator>
		<pubDate>Mon, 30 Jan 2012 21:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=588#comment-15154</guid>
		<description>&lt;p&gt;Thanks for sharing this!&lt;/p&gt;

&lt;p&gt;For my app, I have some resources in group A that i want to always cache, for which this works great; and other resources in group B i&#039;d like to cache as space allows, but not without bound, and don&#039;t want to let the growth of the group B cache force a purge of group A. I may end up writing those two groups of resources to two different storage locations, one that is non-purgable, one that is purgable.&lt;/p&gt;

&lt;p&gt;Anyhow, if anyone ends up merging this concept of Rob&#039;s with one of the LRU/size managed persistent cache implementations out there, such as steipete&#039;s SDURLCache fork, AFCache, or one of the others, please post a link here. Thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this!</p>

<p>For my app, I have some resources in group A that i want to always cache, for which this works great; and other resources in group B i&#8217;d like to cache as space allows, but not without bound, and don&#8217;t want to let the growth of the group B cache force a purge of group A. I may end up writing those two groups of resources to two different storage locations, one that is non-purgable, one that is purgable.</p>

<p>Anyhow, if anyone ends up merging this concept of Rob&#8217;s with one of the LRU/size managed persistent cache implementations out there, such as steipete&#8217;s SDURLCache fork, AFCache, or one of the others, please post a link here. Thanks!</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Drop-in offline caching for UIWebView (and NSURLProtocol) by Rob Napier</title>
		<link>http://robnapier.net/blog/offline-uiwebview-nsurlprotocol-588/comment-page-1#comment-15147</link>
		<dc:creator>Rob Napier</dc:creator>
		<pubDate>Sun, 29 Jan 2012 23:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=588#comment-15147</guid>
		<description>&lt;p&gt;This is an excellent point. It shouldn&#039;t come up very often in the kinds of uses I am discussing here (since my goal is offline access to smallish things), but it is a general issue with streaming media. I&#039;m surprised about SVG, though; I didn&#039;t know about that. Why is that a problem?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is an excellent point. It shouldn&#8217;t come up very often in the kinds of uses I am discussing here (since my goal is offline access to smallish things), but it is a general issue with streaming media. I&#8217;m surprised about SVG, though; I didn&#8217;t know about that. Why is that a problem?</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Drop-in offline caching for UIWebView (and NSURLProtocol) by Rob Napier</title>
		<link>http://robnapier.net/blog/offline-uiwebview-nsurlprotocol-588/comment-page-1#comment-15146</link>
		<dc:creator>Rob Napier</dc:creator>
		<pubDate>Sun, 29 Jan 2012 23:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=588#comment-15146</guid>
		<description>&lt;p&gt;Absolutely. I haven&#039;t generally put formal licenses on my example code, but it should be considered in the spirit of the BSD license. If a legal department needs me to post a license, I will.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Absolutely. I haven&#8217;t generally put formal licenses on my example code, but it should be considered in the spirit of the BSD license. If a legal department needs me to post a license, I will.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Drop-in offline caching for UIWebView (and NSURLProtocol) by Jonathan Wight</title>
		<link>http://robnapier.net/blog/offline-uiwebview-nsurlprotocol-588/comment-page-1#comment-15145</link>
		<dc:creator>Jonathan Wight</dc:creator>
		<pubDate>Sun, 29 Jan 2012 23:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=588#comment-15145</guid>
		<description>&lt;p&gt;One big problem with this technique - and NSURLProtocols in general - is that various media types cannot and will not be forced to load via protocols.&lt;/p&gt;

&lt;p&gt;Off the top of my head video and audio won&#039;t work, neither will SVG. This &lt;em&gt;really&lt;/em&gt; limits its usefulness as a general purpose loader for web views.&lt;/p&gt;

&lt;p&gt;It&#039;s very frustrating. Bugs have been filed. Teeth have been gnashed.&lt;/p&gt;

&lt;p&gt;Also you want to be really careful with concurrency. URL loading should never block the main thread - try loading a web page with a lot of images though a non-concurrent URL protocol - it&#039;s quite a painful experience.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>One big problem with this technique &#8211; and NSURLProtocols in general &#8211; is that various media types cannot and will not be forced to load via protocols.</p>

<p>Off the top of my head video and audio won&#8217;t work, neither will SVG. This <em>really</em> limits its usefulness as a general purpose loader for web views.</p>

<p>It&#8217;s very frustrating. Bugs have been filed. Teeth have been gnashed.</p>

<p>Also you want to be really careful with concurrency. URL loading should never block the main thread &#8211; try loading a web page with a lot of images though a non-concurrent URL protocol &#8211; it&#8217;s quite a painful experience.</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Drop-in offline caching for UIWebView (and NSURLProtocol) by Joe</title>
		<link>http://robnapier.net/blog/offline-uiwebview-nsurlprotocol-588/comment-page-1#comment-15144</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sun, 29 Jan 2012 21:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=588#comment-15144</guid>
		<description>&lt;p&gt;This really awesome! By any chance are you making this open source? Can we use this in our projects?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This really awesome! By any chance are you making this open source? Can we use this in our projects?</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Properly encrypting with AES with CommonCrypto by Rob Napier</title>
		<link>http://robnapier.net/blog/aes-commoncrypto-564/comment-page-1#comment-15056</link>
		<dc:creator>Rob Napier</dc:creator>
		<pubDate>Sat, 14 Jan 2012 22:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=564#comment-15056</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-15055&quot; rel=&quot;nofollow&quot;&gt;@Richard Fink &lt;/a&gt; If it&#039;s 7-bit ASCII (real ASCII, not just &quot;text&quot;), then yes, that is a subset of the UTF-8 (8-bit) encoding space. What does the decoded data look like? Does it look like a string of characters?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-15055" rel="nofollow">@Richard Fink </a> If it&#8217;s 7-bit ASCII (real ASCII, not just &#8220;text&#8221;), then yes, that is a subset of the UTF-8 (8-bit) encoding space. What does the decoded data look like? Does it look like a string of characters?</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Properly encrypting with AES with CommonCrypto by Richard Fink</title>
		<link>http://robnapier.net/blog/aes-commoncrypto-564/comment-page-1#comment-15055</link>
		<dc:creator>Richard Fink</dc:creator>
		<pubDate>Sat, 14 Jan 2012 22:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=564#comment-15055</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-15020&quot; rel=&quot;nofollow&quot;&gt;@Rob Napier &lt;/a&gt; 
Well, the original data that was encrypted was simple ASCII character data. So I think that qualifies as UTF-8 encoding, am I wrong there ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-15020" rel="nofollow">@Rob Napier </a> 
Well, the original data that was encrypted was simple ASCII character data. So I think that qualifies as UTF-8 encoding, am I wrong there ?</p>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Properly encrypting with AES with CommonCrypto by Rob Napier</title>
		<link>http://robnapier.net/blog/aes-commoncrypto-564/comment-page-1#comment-15020</link>
		<dc:creator>Rob Napier</dc:creator>
		<pubDate>Wed, 11 Jan 2012 17:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://robnapier.net/blog/?p=564#comment-15020</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-15015&quot; rel=&quot;nofollow&quot;&gt;@Richard Fink &lt;/a&gt; Was the original input a UTF-8 encoded string (versus some other encoding such as a Windows CP encoding or UTF-16 encoding)? Make sure that the &lt;code&gt;NSData&lt;/code&gt; itself is not &lt;code&gt;nil&lt;/code&gt;. If it is, that suggests you have a decryption error. If not, take a look at the data directly. Does it appear to be a UTF-8 string? (In the debugger, use &lt;code&gt;p (char*)[data bytes]&lt;/code&gt;.)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-15015" rel="nofollow">@Richard Fink </a> Was the original input a UTF-8 encoded string (versus some other encoding such as a Windows CP encoding or UTF-16 encoding)? Make sure that the <code>NSData</code> itself is not <code>nil</code>. If it is, that suggests you have a decryption error. If not, take a look at the data directly. Does it appear to be a UTF-8 string? (In the debugger, use <code>p (char*)[data bytes]</code>.)</p>]]></content:encoded>
	</item>
</channel>
</rss>

