<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mathemagicio.us &#187; Security</title>
	<atom:link href="http://mathemagicio.us/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://mathemagicio.us</link>
	<description>Ramblings and musings about math, science and truth</description>
	<lastBuildDate>Wed, 14 Oct 2009 01:02:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>This physically pains me</title>
		<link>http://mathemagicio.us/2009/05/21/this-physically-pains-me/</link>
		<comments>http://mathemagicio.us/2009/05/21/this-physically-pains-me/#comments</comments>
		<pubDate>Fri, 22 May 2009 03:58:23 +0000</pubDate>
		<dc:creator>Mark Przepiora</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://mathemagicio.us/?p=436</guid>
		<description><![CDATA[Here&#8217;s a real excerpt (slightly modified to protect the stupid, and now fixed) from a web app I inherited. GRAAAAAAAARGH!

def encrypt_password
  ...
  self.salt = md5&#40;&#34;#{Time.now.to_s}-#{login}&#34;&#41;
  ...
end
&#160;
def generate_confirm_hash
  ...
  self.confirm_hash = md5&#40;&#34;#{Time.now.to_s}-#{email}&#34;&#41;
  ..
end

Pro-tip for hiring managers: ask candidates to identify problems in the above code, and smack any who fail [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a real excerpt (slightly modified to protect the stupid, and now fixed) from a web app I inherited. <strong><em>GRAAAAAAAARGH!</em></strong></p>

<div class="wp_syntax"><div class="code"><pre class="rails rails" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> encrypt_password
  ...
  <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">salt</span> = md5<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;#{Time.now.to_s}-#{login}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  ...
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">def</span> generate_confirm_hash
  ...
  <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">confirm_hash</span> = md5<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;#{Time.now.to_s}-#{email}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  ..
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Pro-tip for hiring managers: ask candidates to identify problems in the above code, and smack any who fail to do so.</p>
]]></content:encoded>
			<wfw:commentRss>http://mathemagicio.us/2009/05/21/this-physically-pains-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
