<?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>Intrepid Blog &#187; safe</title>
	<atom:link href="http://blog.affien.com/archives/tag/safe/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affien.com</link>
	<description>A few thoughts</description>
	<lastBuildDate>Mon, 23 Jan 2012 08:47:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Safe web authentication</title>
		<link>http://blog.affien.com/archives/2005/05/16/safe-web-authentication/</link>
		<comments>http://blog.affien.com/archives/2005/05/16/safe-web-authentication/#comments</comments>
		<pubDate>Mon, 16 May 2005 14:52:55 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[safe]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2005/05/16/safe-web-authentication/</guid>
		<description><![CDATA[The major problem with security of web applications is  [...]]]></description>
			<content:encoded><![CDATA[<p>The major problem with security of web applications is that the client sends the login name and password in plain text if https isn&#8217;t available. A nasty person with access to the network could use ARP poisening alongside packet sniffing to acquire the login, which wouldn&#8217;t really be desirable.</p>
<p>I stumbled accross a very interesting piece javascript which implements the md5 hash algorithm: <a href="http://pajhome.org.uk/crypt/md5/">http://pajhome.org.uk/crypt/md5/</a>.</p>
<p>Using a hash makes it impossible to reverse engineer a password and makes authentication safer. An issue with this is that you only require the hash, not the password to get in. To prevent this the password should be salted before hashed.</p>
<p>Basicly a secure authentication via http would look like this:</p>
<p><strong>Client sends</strong> request for login to server.<br />
<strong>Server sends</strong> the login form which includes a <em>login id</em> and <em>salt</em> to the client.<br />
<strong>Server stores</strong> the <em>login id</em> and <em>salt</em> it sent to the client.<br />
<strong>Client sends</strong> the <em>hash</em> of the filled out password and received hash alongside the <em>login id</em> from the server to the server.<br />
<strong>Server checks</strong> whether the hash of the password in the database and the received hash combined with the login id are valid.<br />
<strong>Server sends</strong> whether authentication was a success.</p>
<p>Maybe I&#8217;ll implement an example application <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . In any case I hope that this will be employed.</p>
<p><strong>Update, most authentication system used by webbased software are still vulnerable and would almost neglect the use of this by being able to hijack a session by just getting the session key. The client however could also implement javascript to use a similar method with a salt to protect the session key. The problem still is that it is extra overhead on the client and that not every client has got javascript enabled.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2005/05/16/safe-web-authentication/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

