<?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: AES interoperability between .Net and iPhone</title>
	<atom:link href="http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/</link>
	<description>Adventures with OS X and DotNet</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:19:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Mitesh Khatri</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-283</link>
		<dc:creator>Mitesh Khatri</dc:creator>
		<pubDate>Fri, 23 Jul 2010 09:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-283</guid>
		<description>Thanks. very nice code. it helps very much...</description>
		<content:encoded><![CDATA[<p>Thanks. very nice code. it helps very much&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karloz</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-260</link>
		<dc:creator>Karloz</dc:creator>
		<pubDate>Fri, 04 Jun 2010 00:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-260</guid>
		<description>YOU ARE THE MAN !!!!

saved me !


thanks everyone for fixing the Base64 Problem !!!!</description>
		<content:encoded><![CDATA[<p>YOU ARE THE MAN !!!!</p>
<p>saved me !</p>
<p>thanks everyone for fixing the Base64 Problem !!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guna</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-258</link>
		<dc:creator>Guna</dc:creator>
		<pubDate>Wed, 02 Jun 2010 01:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-258</guid>
		<description>Thanks for the code, it gives the clear idea  for encrypting data on the iPhone and decrypting it using .Net.</description>
		<content:encoded><![CDATA[<p>Thanks for the code, it gives the clear idea  for encrypting data on the iPhone and decrypting it using .Net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeet</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-173</link>
		<dc:creator>jeet</dc:creator>
		<pubDate>Mon, 19 Apr 2010 14:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-173</guid>
		<description>I am not taking my words back... you guys are great, but I struck at ground :( I was testing both versions in and out.
I am encrypting a string in objective-c and also encrypting the same string in C# using AES and am seeing some strange issues. The first part of the result matches up to a certain point but then it is different. Why?

I am using a source string of &quot;this is going to be test and fingers are crossed&quot; Using a key of &quot;1234567891123456&quot;

The result from Objective C is 5U6TAlyma3GbR5UYqyk7d7mdTY1Jy9obUTwlOaL0/wn72s7IVZQPi1zydeonLSqP

The result from C# is
5U6TAlyma3GbR5UYqyk7d7mdTY1Jy9obUTwlOaL0/wn72s7IVZQPi1zydeonLSqPwifBaSjG51fj6y4S
j7cS7w==

you notice that initial portion of strings are same but then it starting differs.

I&#039;ve not added/modified anything except for those string and key.
Please assist... I am in do/die situation :(

thanks
Jeet</description>
		<content:encoded><![CDATA[<p>I am not taking my words back&#8230; you guys are great, but I struck at ground <img src='http://dotmac.rationalmind.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  I was testing both versions in and out.<br />
I am encrypting a string in objective-c and also encrypting the same string in C# using AES and am seeing some strange issues. The first part of the result matches up to a certain point but then it is different. Why?</p>
<p>I am using a source string of &#8220;this is going to be test and fingers are crossed&#8221; Using a key of &#8220;1234567891123456&#8243;</p>
<p>The result from Objective C is 5U6TAlyma3GbR5UYqyk7d7mdTY1Jy9obUTwlOaL0/wn72s7IVZQPi1zydeonLSqP</p>
<p>The result from C# is<br />
5U6TAlyma3GbR5UYqyk7d7mdTY1Jy9obUTwlOaL0/wn72s7IVZQPi1zydeonLSqPwifBaSjG51fj6y4S<br />
j7cS7w==</p>
<p>you notice that initial portion of strings are same but then it starting differs.</p>
<p>I&#8217;ve not added/modified anything except for those string and key.<br />
Please assist&#8230; I am in do/die situation <img src='http://dotmac.rationalmind.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>thanks<br />
Jeet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeet</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-171</link>
		<dc:creator>jeet</dc:creator>
		<pubDate>Sun, 18 Apr 2010 10:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-171</guid>
		<description>by the way guys, I am looking for interoperability between .Net and iPhone for compression mechanism, currently I am trying gZip that available in both platforms, but luck is not my way,
strings which i compressed from both mechanism gives me different decompressed strings

many thanks
Jeet</description>
		<content:encoded><![CDATA[<p>by the way guys, I am looking for interoperability between .Net and iPhone for compression mechanism, currently I am trying gZip that available in both platforms, but luck is not my way,<br />
strings which i compressed from both mechanism gives me different decompressed strings</p>
<p>many thanks<br />
Jeet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeet</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-170</link>
		<dc:creator>jeet</dc:creator>
		<pubDate>Sun, 18 Apr 2010 06:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-170</guid>
		<description>you guys are chittah (jaguars) - kudos and many thanks!</description>
		<content:encoded><![CDATA[<p>you guys are chittah (jaguars) &#8211; kudos and many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rpmobile</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-166</link>
		<dc:creator>Rpmobile</dc:creator>
		<pubDate>Thu, 08 Apr 2010 18:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-166</guid>
		<description>Just discovered this post while searching for iphone-&gt;.NET crypto interop.  Did the base 64 bug get addressed?

Thanks!</description>
		<content:encoded><![CDATA[<p>Just discovered this post while searching for iphone-&gt;.NET crypto interop.  Did the base 64 bug get addressed?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denny Ferrassoli</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-124</link>
		<dc:creator>Denny Ferrassoli</dc:creator>
		<pubDate>Wed, 03 Mar 2010 18:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-124</guid>
		<description>Thank you so much for finding this! I was trying to figure this out over a year ago and eventually had to move on.</description>
		<content:encoded><![CDATA[<p>Thank you so much for finding this! I was trying to figure this out over a year ago and eventually had to move on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-115</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 25 Feb 2010 08:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-115</guid>
		<description>Thanks for the code. It is very useful for me.
And I would also like to thanks bbb. Otherwise, I cannot still find a way to decrypt the base32 string.</description>
		<content:encoded><![CDATA[<p>Thanks for the code. It is very useful for me.<br />
And I would also like to thanks bbb. Otherwise, I cannot still find a way to decrypt the base32 string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bbb</title>
		<link>http://dotmac.rationalmind.net/2009/02/aes-interoperability-between-net-and-iphone/comment-page-1/#comment-113</link>
		<dc:creator>bbb</dc:creator>
		<pubDate>Tue, 23 Feb 2010 22:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://dotmac.rationalmind.net/?p=96#comment-113</guid>
		<description>Because this was so helpful...

 There seems to be a bug in the base64 file. The line with inbuf[3] outbuf[4] should be inbuf[4] outbuf[3].

And you need to use the base64 stuff if you are working off the .NET example.. So something like 

NSData * encdata = [NSData dataWithBase64DecodedString:the_encrypted64strfromweb];

NSData* decData = [crypto decrypt:encdata ....

--------------

Oh, and just use a 16 character key right off the bat....

Thanks</description>
		<content:encoded><![CDATA[<p>Because this was so helpful&#8230;</p>
<p> There seems to be a bug in the base64 file. The line with inbuf[3] outbuf[4] should be inbuf[4] outbuf[3].</p>
<p>And you need to use the base64 stuff if you are working off the .NET example.. So something like </p>
<p>NSData * encdata = [NSData dataWithBase64DecodedString:the_encrypted64strfromweb];</p>
<p>NSData* decData = [crypto decrypt:encdata &#8230;.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Oh, and just use a 16 character key right off the bat&#8230;.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
