<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Building Browsergames - Latest Comments in Building Browsergames: Securing our hashes (PHP)</title><link>http://bbgames.disqus.com/</link><description></description><language>en</language><lastBuildDate>Sat, 14 Mar 2009 14:05:48 -0000</lastBuildDate><item><title>Re: Building Browsergames: Securing our hashes (PHP)</title><link>http://buildingbrowsergames.com/2008/07/15/securing-our-hashes-php/#comment-7216443</link><description>Ah ok :).&lt;br&gt;Anyway, my salt (which I made before I read this thanks to the user comments on other pages) is short, and I probably do not need it anywhere else than on the login and register page. &lt;br&gt;Thanks for your reply!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrLollige</dc:creator><pubDate>Sat, 14 Mar 2009 14:05:48 -0000</pubDate></item><item><title>Re: Building Browsergames: Securing our hashes (PHP)</title><link>http://buildingbrowsergames.com/2008/07/15/securing-our-hashes-php/#comment-7215554</link><description>The benefits of turning it into a configuration value aren't so much in&lt;br&gt;securing it, as they are in not repeating it everywhere - if your salt is&lt;br&gt;'thequickbrownfoxjumpedoverthelazydog', do you really want to type that&lt;br&gt;everytime you need it?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbgames</dc:creator><pubDate>Sat, 14 Mar 2009 13:12:13 -0000</pubDate></item><item><title>Re: Building Browsergames: Securing our hashes (PHP)</title><link>http://buildingbrowsergames.com/2008/07/15/securing-our-hashes-php/#comment-7214651</link><description>you could(and probably should) turn the salt into a configuration parameter&lt;br&gt;&lt;br&gt;Why? I mean, if I change the salt value (if someone figured it and modified his dictionary to it), noone would be able to login any more....</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrLollige</dc:creator><pubDate>Sat, 14 Mar 2009 12:13:10 -0000</pubDate></item><item><title>Re: Building Browsergames: Securing our hashes (PHP)</title><link>http://buildingbrowsergames.com/2008/07/15/securing-our-hashes-php/#comment-4077067</link><description>It doesn't matter much, but it isn't necessary to nest the md5() function within mysql_real_escape_string() as you will never have to escape a hexadecimal string. &lt;br&gt;&lt;br&gt;While it usually works regardless, HTTP/1.1 requires you to use an absolute URL in header redirects. Example from php manual below:&lt;br&gt;&lt;br&gt;/* Redirect to a different page in the current directory that was requested */&lt;br&gt;$host  = $_SERVER['HTTP_HOST'];&lt;br&gt;$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');&lt;br&gt;$extra = 'mypage.php';&lt;br&gt;header("Location: &lt;a href="http://%24host%24uri/%24extra%22%29;" rel="nofollow"&gt;http://$host$uri/$extra");&lt;/a&gt;&lt;br&gt;exit();</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Hepner</dc:creator><pubDate>Sun, 30 Nov 2008 19:08:12 -0000</pubDate></item></channel></rss>