<?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>Sat, 04 Feb 2012 08:16:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: haplo</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-12114</link>
		<dc:creator>haplo</dc:creator>
		<pubDate>Wed, 18 Jan 2012 02:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-12114</guid>
		<description>php side, 1st line of init() should be:

 $this-&gt;key = ($this-&gt;key != &quot;&quot;) ? $this-&gt;key : &quot;&quot;;</description>
		<content:encoded><![CDATA[<p>php side, 1st line of init() should be:</p>
<p> $this-&gt;key = ($this-&gt;key != &#8220;&#8221;) ? $this-&gt;key : &#8220;&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rami</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-5570</link>
		<dc:creator>Rami</dc:creator>
		<pubDate>Sun, 07 Nov 2010 21:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-5570</guid>
		<description>I would like to use your script but for encrypting/decrypting an SWF file then load it using the loader class, is this possible? or it only works for string based encrypting/decrypting .. if possible would you please show me a way? 

thank you</description>
		<content:encoded><![CDATA[<p>I would like to use your script but for encrypting/decrypting an SWF file then load it using the loader class, is this possible? or it only works for string based encrypting/decrypting .. if possible would you please show me a way? </p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Auto-Encrypt Assets for Flash - squidder.com</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-5021</link>
		<dc:creator>Auto-Encrypt Assets for Flash - squidder.com</dc:creator>
		<pubDate>Fri, 23 Apr 2010 17:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-5021</guid>
		<description>[...] why we were so excited when we found this article over at Zedia Flash Blog, which provides an easy way to encrypt something via PHP and decrypt it via Flash (or the other way [...]</description>
		<content:encoded><![CDATA[<p>[...] why we were so excited when we found this article over at Zedia Flash Blog, which provides an easy way to encrypt something via PHP and decrypt it via Flash (or the other way [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trebax blog &#187; Blog Archive &#187; Кодирование данных AS3 &#38; PHP</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-4959</link>
		<dc:creator>Trebax blog &#187; Blog Archive &#187; Кодирование данных AS3 &#38; PHP</dc:creator>
		<pubDate>Wed, 07 Apr 2010 09:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-4959</guid>
		<description>[...] Если нужно ревлизовать метод криптования/декриптования данных во flash и php, то эта статья очень поможет: смотрим [...]</description>
		<content:encoded><![CDATA[<p>[...] Если нужно ревлизовать метод криптования/декриптования данных во flash и php, то эта статья очень поможет: смотрим [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sascha Krot</title>
		<link>http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/comment-page-1/#comment-4890</link>
		<dc:creator>Sascha Krot</dc:creator>
		<pubDate>Mon, 15 Mar 2010 07:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/?p=393#comment-4890</guid>
		<description>I think I may have spotted a bug in php Crypt :: decrypt method. The thing is, if a string is padded with spaces (e.g., 11 characters are needed to pad the value), then the padding gets effectively removed by the rtrim call.
I believe, that rtrim might actually not be needed — AS3 Crypto PKCS#5 unpad implementation does not perform any trimming.</description>
		<content:encoded><![CDATA[<p>I think I may have spotted a bug in php Crypt :: decrypt method. The thing is, if a string is padded with spaces (e.g., 11 characters are needed to pad the value), then the padding gets effectively removed by the rtrim call.<br />
I believe, that rtrim might actually not be needed — AS3 Crypto PKCS#5 unpad implementation does not perform any trimming.</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

