<?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 Tom&#039;s Blog</title>
	<atom:link href="http://www.encapsulated.org/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.encapsulated.org/blog</link>
	<description>An analog guy in a digital world</description>
	<lastBuildDate>Tue, 09 Mar 2010 14:22:40 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on How to let DomPDF and Zend Framework play along by Marcel van Veelen</title>
		<link>http://www.encapsulated.org/blog/2009/08/27/how-to-let-dompdf-and-zend-framework-play-along/comment-page-1/#comment-2075</link>
		<dc:creator>Marcel van Veelen</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=77#comment-2075</guid>
		<description>Great!

Works fine.</description>
		<content:encoded><![CDATA[<p>Great!</p>
<p>Works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security with Zend_AMF and Flex &#8211; Part 2: Practise by Titi</title>
		<link>http://www.encapsulated.org/blog/2009/04/15/security-with-zend_amf-and-flex-part-2-practise/comment-page-1/#comment-1973</link>
		<dc:creator>Titi</dc:creator>
		<pubDate>Wed, 24 Feb 2010 16:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=31#comment-1973</guid>
		<description>Hi Tom
I know that this blog entry is a little bit old but it&#039;s very helpful to me. Do you know if your colleague would agree to show me his flex code ? Because it&#039;s the hardest part for me in the authentication process with zend_amf...

Thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi Tom<br />
I know that this blog entry is a little bit old but it&#8217;s very helpful to me. Do you know if your colleague would agree to show me his flex code ? Because it&#8217;s the hardest part for me in the authentication process with zend_amf&#8230;</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to let DomPDF and Zend Framework play along by Michael D</title>
		<link>http://www.encapsulated.org/blog/2009/08/27/how-to-let-dompdf-and-zend-framework-play-along/comment-page-1/#comment-1784</link>
		<dc:creator>Michael D</dc:creator>
		<pubDate>Sat, 23 Jan 2010 01:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=77#comment-1784</guid>
		<description>&lt;a href=&quot;#comment-1778&quot; rel=&quot;nofollow&quot;&gt;@Tom&lt;/a&gt; 
 Here is the html that is added to the file before the pdf header. 
----------
&lt;b&gt;Warning&lt;/b&gt;:  file_put_contents(/var/www/vmnc/library/dompdf/lib/fonts/php_Times-Roman.afm) [&lt;a href=&#039;function.file-put-contents&#039; rel=&quot;nofollow&quot;&gt;function.file-put-contents&lt;/a&gt;]: failed to open stream: Permission denied in &lt;b&gt;/var/www/vmnc/library/dompdf/lib/class.pdf.php&lt;/b&gt; on line &lt;b&gt;2354&lt;/b&gt;

-------------
Im not sure what that means but is enough to corrupt the file so it wont be rendered by some pdf viewers. 

Thanks I appreciate your help.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1778" rel="nofollow">@Tom</a><br />
 Here is the html that is added to the file before the pdf header.<br />
&#8212;&#8212;&#8212;-<br />
<b>Warning</b>:  file_put_contents(/var/www/vmnc/library/dompdf/lib/fonts/php_Times-Roman.afm) [<a href='function.file-put-contents' rel="nofollow">function.file-put-contents</a>]: failed to open stream: Permission denied in <b>/var/www/vmnc/library/dompdf/lib/class.pdf.php</b> on line <b>2354</b></p>
<p>&#8212;&#8212;&#8212;&#8212;-<br />
Im not sure what that means but is enough to corrupt the file so it wont be rendered by some pdf viewers. </p>
<p>Thanks I appreciate your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit testing your Javascript: Just Do It by Tom</title>
		<link>http://www.encapsulated.org/blog/2009/12/15/unit-testing-your-javascript-just-do-it/comment-page-1/#comment-1782</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=99#comment-1782</guid>
		<description>Very interesting approach. I&#039;ll have to read the post again, because after a first quick read, I didn&#039;t fully understand how the concept works.

Thanks!</description>
		<content:encoded><![CDATA[<p>Very interesting approach. I&#8217;ll have to read the post again, because after a first quick read, I didn&#8217;t fully understand how the concept works.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit testing your Javascript: Just Do It by Josh Ribakoff</title>
		<link>http://www.encapsulated.org/blog/2009/12/15/unit-testing-your-javascript-just-do-it/comment-page-1/#comment-1781</link>
		<dc:creator>Josh Ribakoff</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=99#comment-1781</guid>
		<description>I just started using Qunit. I was searching for an article I read the other day and came across yours. The set timeout thing is cool, but not when you have a lot of tests and the time outs add up.

Check out this post for a better way to test asynchronous code

http://www.onenaught.com/posts/85/turn-your-jquery-code-into-a-richer-unit-testable-plugin</description>
		<content:encoded><![CDATA[<p>I just started using Qunit. I was searching for an article I read the other day and came across yours. The set timeout thing is cool, but not when you have a lot of tests and the time outs add up.</p>
<p>Check out this post for a better way to test asynchronous code</p>
<p><a href="http://www.onenaught.com/posts/85/turn-your-jquery-code-into-a-richer-unit-testable-plugin" rel="nofollow">http://www.onenaught.com/posts/85/turn-your-jquery-code-into-a-richer-unit-testable-plugin</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to let DomPDF and Zend Framework play along by Tom</title>
		<link>http://www.encapsulated.org/blog/2009/08/27/how-to-let-dompdf-and-zend-framework-play-along/comment-page-1/#comment-1778</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 20 Jan 2010 22:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=77#comment-1778</guid>
		<description>Have you tried my second method? That&#039;s a more compact approach. Of course, you lose the benefit of a layout, but I could live with that.

Could you post what you have, then maybe I can help you with fixing it.</description>
		<content:encoded><![CDATA[<p>Have you tried my second method? That&#8217;s a more compact approach. Of course, you lose the benefit of a layout, but I could live with that.</p>
<p>Could you post what you have, then maybe I can help you with fixing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to let DomPDF and Zend Framework play along by Michael D</title>
		<link>http://www.encapsulated.org/blog/2009/08/27/how-to-let-dompdf-and-zend-framework-play-along/comment-page-1/#comment-1768</link>
		<dc:creator>Michael D</dc:creator>
		<pubDate>Mon, 18 Jan 2010 05:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=77#comment-1768</guid>
		<description>Ive been trying your approach but I keep getting corrupted files with the html content coming before the pdf. I can disable the layout with $this-&gt;helper-&gt;layout-&gt;diableLayout(); to just get the view scipt html code but I cant figure out how to get the view in the pdfs layout content area.</description>
		<content:encoded><![CDATA[<p>Ive been trying your approach but I keep getting corrupted files with the html content coming before the pdf. I can disable the layout with $this-&gt;helper-&gt;layout-&gt;diableLayout(); to just get the view scipt html code but I cant figure out how to get the view in the pdfs layout content area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security with Zend_AMF and Flex &#8211; Part 1: Theory by Beany</title>
		<link>http://www.encapsulated.org/blog/2009/04/05/security-with-zend_amf-and-flex-part-1-theory/comment-page-1/#comment-1733</link>
		<dc:creator>Beany</dc:creator>
		<pubDate>Wed, 06 Jan 2010 21:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=24#comment-1733</guid>
		<description>Thanks for your elaboration,

This is exactly what I was thinking, I was just wondering what your take on it all was. I really like the signature idea for verification a lot :)</description>
		<content:encoded><![CDATA[<p>Thanks for your elaboration,</p>
<p>This is exactly what I was thinking, I was just wondering what your take on it all was. I really like the signature idea for verification a lot <img src='http://www.encapsulated.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security with Zend_AMF and Flex &#8211; Part 1: Theory by Tom</title>
		<link>http://www.encapsulated.org/blog/2009/04/05/security-with-zend_amf-and-flex-part-1-theory/comment-page-1/#comment-1732</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 06 Jan 2010 18:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=24#comment-1732</guid>
		<description>Hi,

The password should never be stored as plain text in your database. This makes it easy for a hacker to see everything. You could encrypt it via a hashing method (sha1 or md5), but that&#039;s not good in this case, since hashing is one-way. I usually encrypt/decrypt the password in the database with AES_DECRYPT() and AES_ENCRYPT(). Both are MySQL functions, and require a salt to encrypt the password with. This salt should be known to your application, so you would have to store it somewhere in a configuration file.

As for creating new users, I honestly haven&#039;t thought about that. My method comes from a case at work, where new users were created via a web interface that already existed. I haven&#039;t put any thought into that part. So obviously it suffers the same flaws as a connection via Flash/flex: it can be intercepted. At the moment, I cannot think of a really safe way to register a new user, except with an SSL encrypted connection (HTTPS). But then again, if you have SSL, you won&#039;t be needing this method.

This method is not for encrypting the data you send to the server (creating a user sends his username and password to the server). It is meant to digitally sign a request to the server, thus making sure that the data can be trusted to come from the user. A hacker will still be able to see what the user is sending to the server, but he won&#039;t be able to tamper with the data.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The password should never be stored as plain text in your database. This makes it easy for a hacker to see everything. You could encrypt it via a hashing method (sha1 or md5), but that&#8217;s not good in this case, since hashing is one-way. I usually encrypt/decrypt the password in the database with AES_DECRYPT() and AES_ENCRYPT(). Both are MySQL functions, and require a salt to encrypt the password with. This salt should be known to your application, so you would have to store it somewhere in a configuration file.</p>
<p>As for creating new users, I honestly haven&#8217;t thought about that. My method comes from a case at work, where new users were created via a web interface that already existed. I haven&#8217;t put any thought into that part. So obviously it suffers the same flaws as a connection via Flash/flex: it can be intercepted. At the moment, I cannot think of a really safe way to register a new user, except with an SSL encrypted connection (HTTPS). But then again, if you have SSL, you won&#8217;t be needing this method.</p>
<p>This method is not for encrypting the data you send to the server (creating a user sends his username and password to the server). It is meant to digitally sign a request to the server, thus making sure that the data can be trusted to come from the user. A hacker will still be able to see what the user is sending to the server, but he won&#8217;t be able to tamper with the data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security with Zend_AMF and Flex &#8211; Part 1: Theory by Beany</title>
		<link>http://www.encapsulated.org/blog/2009/04/05/security-with-zend_amf-and-flex-part-1-theory/comment-page-1/#comment-1730</link>
		<dc:creator>Beany</dc:creator>
		<pubDate>Wed, 06 Jan 2010 11:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=24#comment-1730</guid>
		<description>Interesting solution, I have a question about the signature though.

Interesting solution, I&#039;ve got a couple of questions though.

In order to correctly generate the signature, both parties need to know the challenge and the password already. How do you generate your initial password for a new user safely, without a third party listening in on this?

Even more important (I think), how do you store it? In order for this to work correctly, it seems that you need to store the password as is. Or do you encrypt/decrypt the password on the server side?</description>
		<content:encoded><![CDATA[<p>Interesting solution, I have a question about the signature though.</p>
<p>Interesting solution, I&#8217;ve got a couple of questions though.</p>
<p>In order to correctly generate the signature, both parties need to know the challenge and the password already. How do you generate your initial password for a new user safely, without a third party listening in on this?</p>
<p>Even more important (I think), how do you store it? In order for this to work correctly, it seems that you need to store the password as is. Or do you encrypt/decrypt the password on the server side?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
