<?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: as3Crypto and php, what a fun ride!</title>
	<atom:link href="http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Wed, 10 Mar 2010 23:19:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Flash encryption and PHP decryption&#160;&#124;&#160;Element Lab</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-4791</link>
		<dc:creator>Flash encryption and PHP decryption&#160;&#124;&#160;Element Lab</dc:creator>
		<pubDate>Wed, 10 Feb 2010 16:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-4791</guid>
		<description>[...] http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/" rel="nofollow">http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-4611</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Mon, 14 Dec 2009 07:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-4611</guid>
		<description>Would be really interested in a complete working AES version of this system with all the bugs removed. I was quite shocked to find out how much time I&#039;ve had to spend finding a system to crypt data between php and actionscript. Yet still haven&#039;t found a strong secure way.</description>
		<content:encoded><![CDATA[<p>Would be really interested in a complete working AES version of this system with all the bugs removed. I was quite shocked to find out how much time I&#8217;ve had to spend finding a system to crypt data between php and actionscript. Yet still haven&#8217;t found a strong secure way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AlexWD</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-4234</link>
		<dc:creator>AlexWD</dc:creator>
		<pubDate>Thu, 12 Nov 2009 04:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-4234</guid>
		<description>I noticed some problems as well, but it&#039;s not on the PHP end. Rather when decrypting on the PHP end I&#039;m getting random chars appended to the front. I put a temporary solution that makes it work for me, but I&#039;m not sure if it&#039;s the right way to go because I don&#039;t know the full extent of the problem. And it&#039;s just a half-assed fix anyway.</description>
		<content:encoded><![CDATA[<p>I noticed some problems as well, but it&#8217;s not on the PHP end. Rather when decrypting on the PHP end I&#8217;m getting random chars appended to the front. I put a temporary solution that makes it work for me, but I&#8217;m not sure if it&#8217;s the right way to go because I don&#8217;t know the full extent of the problem. And it&#8217;s just a half-assed fix anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-4194</link>
		<dc:creator>Hadi</dc:creator>
		<pubDate>Sat, 07 Nov 2009 20:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-4194</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-4081&quot;&gt;
if (strspn($text, chr($pad), strlen($text) – $pad) != $pad) return $text; //&lt;– return $text instead of false when there is nothign to unpad
blockquote&gt;

it seems that I have problem with Pading also... I submit the bug in as3Crypto their issues tab #28 but will you please explain a bit more about what you&#039;re doing above? Thanks.</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-4081"><p>
if (strspn($text, chr($pad), strlen($text) – $pad) != $pad) return $text; //&lt;– return $text instead of false when there is nothign to unpad<br />
blockquote&gt;</p>
<p>it seems that I have problem with Pading also&#8230; I submit the bug in as3Crypto their issues tab #28 but will you please explain a bit more about what you&#8217;re doing above? Thanks.</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hong</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-4081</link>
		<dc:creator>Hong</dc:creator>
		<pubDate>Wed, 14 Oct 2009 19:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-4081</guid>
		<description>I notice the decryption is not working sometimes. I went inside and found the root of the problem.

For function pkcs5_unpad, this modification will ensure that decryption still goes through if there is no need for unpadding.

if (strspn($text, chr($pad), strlen($text) - $pad) != $pad) return $text; //&lt;-- return $text instead of false when there is nothign to unpad

It works for me but I am not a crypto artist so I am not exactly sure if this is the way to go.

Comment and keep me with the game ppl. =)</description>
		<content:encoded><![CDATA[<p>I notice the decryption is not working sometimes. I went inside and found the root of the problem.</p>
<p>For function pkcs5_unpad, this modification will ensure that decryption still goes through if there is no need for unpadding.</p>
<p>if (strspn($text, chr($pad), strlen($text) &#8211; $pad) != $pad) return $text; //&lt;&#8211; return $text instead of false when there is nothign to unpad</p>
<p>It works for me but I am not a crypto artist so I am not exactly sure if this is the way to go.</p>
<p>Comment and keep me with the game ppl. =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAADMAXX</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-3796</link>
		<dc:creator>MAADMAXX</dc:creator>
		<pubDate>Fri, 03 Jul 2009 04:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-3796</guid>
		<description>What a great post. I&#039;m a intermediate/novice coder - would it be possible to provide working sample code in each direction? Would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>What a great post. I&#8217;m a intermediate/novice coder &#8211; would it be possible to provide working sample code in each direction? Would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atin</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-3767</link>
		<dc:creator>Atin</dc:creator>
		<pubDate>Mon, 29 Jun 2009 07:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-3767</guid>
		<description>nice post man, but i am looking for an encryption and decryption in actionscript.. i tried hurlant, DES but its not working.. the encrypted code is not decrypted with its generated encrypted code.. i also tried xor encrypt decrypt but it fails to decrypt if the text has &#039;and&#039; in it.. looking for help if anyone knows about this..</description>
		<content:encoded><![CDATA[<p>nice post man, but i am looking for an encryption and decryption in actionscript.. i tried hurlant, DES but its not working.. the encrypted code is not decrypted with its generated encrypted code.. i also tried xor encrypt decrypt but it fails to decrypt if the text has &#8216;and&#8217; in it.. looking for help if anyone knows about this..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BubbleBoy</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-3741</link>
		<dc:creator>BubbleBoy</dc:creator>
		<pubDate>Tue, 23 Jun 2009 12:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-3741</guid>
		<description>Thanks! Interesting. It looks to me like you are NOT using AES in this script, although you say it in the intro? Did you implement AES as well? 

Very helpful anyway! Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks! Interesting. It looks to me like you are NOT using AES in this script, although you say it in the intro? Did you implement AES as well? </p>
<p>Very helpful anyway! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-3731</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sun, 21 Jun 2009 00:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-3731</guid>
		<description>Never mind, I was able to find the problem.  I was not initializing the PHP Crypt key properly because I was passing the key in through the constructor not the init() function.</description>
		<content:encoded><![CDATA[<p>Never mind, I was able to find the problem.  I was not initializing the PHP Crypt key properly because I was passing the key in through the constructor not the init() function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-3730</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 20 Jun 2009 21:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-3730</guid>
		<description>I was wondering how to actually use the Crypt class in PHP.  My main problem is with the key passed in through the init function.  Do I pass in the exact same value as the key used in CryptoCode class, in this case &quot;TESTTEST&quot; or do I need to convert the PHP &quot;TESTTEST&quot; string into another format before passing it to the Crypt-&gt;init().

I ask because I&#039;m unable to decrypt data being passed from ActionScript.  I get a 0 back from Crypt-&gt;encrypt().</description>
		<content:encoded><![CDATA[<p>I was wondering how to actually use the Crypt class in PHP.  My main problem is with the key passed in through the init function.  Do I pass in the exact same value as the key used in CryptoCode class, in this case &#8220;TESTTEST&#8221; or do I need to convert the PHP &#8220;TESTTEST&#8221; string into another format before passing it to the Crypt-&gt;init().</p>
<p>I ask because I&#8217;m unable to decrypt data being passed from ActionScript.  I get a 0 back from Crypt-&gt;encrypt().</p>
]]></content:encoded>
	</item>
</channel>
</rss>
