<?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"
	>

<channel>
	<title>the kelath digital doppelgänger</title>
	<atom:link href="http://www.kelath.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kelath.net/blog</link>
	<description></description>
	<pubDate>Wed, 21 May 2008 16:47:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications</title>
		<link>http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/</link>
		<comments>http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/#comments</comments>
		<pubDate>Thu, 15 May 2008 05:43:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[security]]></category>

		<category><![CDATA[technology]]></category>

		<category><![CDATA[ASP.NET]]></category>

		<category><![CDATA[microsoft]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.kelath.net/blog/?p=8</guid>
		<description><![CDATA[Cross Site Scripting (XSS) is a major issue in web applications today. This post describes three ways you can use to solve the XSS problem in your ASP.NET web application. Microsoft has developed framework components that let developers easily get rid of XSS. "validateRequest" directive, Anti-XSS library and Output Encoding are tht three easiest ways to get a handle on this pesky vulnerability.]]></description>
			<content:encoded><![CDATA[<p>Cross Site Scripting (XSS) vulnerability is one of the most prevalent security issue today. Prevention of XSS is pretty straightforward if you know the different options available to you. Let&#8217;s look at 3 easy options when using the .NET framework.</p>
<ul>
<li><strong>.NET &quot;ValidateRequest&quot; Approach       <br /></strong>Microsoft introduced ValidateRequest in .NET 1.1. The idea is that the framework checks incoming requests for any constructs indicative of Cross Site Scripting issues. If any problems are found, an error is raised and the request does not even get to the web application. The directive can be placed in Machine.config, web.config or at the page level. This option is turned on by default in ASP.NET.      <br /><a href="http://msdn.microsoft.com/en-us/library/ms998274.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://msdn.microsoft.com/en-us/library/ms998274.aspx');">Microsoft has made it clear</a> that you should not rely ONLY on this method:<br />
<blockquote>
<p>Do not rely on ASP.NET request validation. Treat it as an extra precautionary measure in addition to your own input validation.</p>
</blockquote>
<p>It is clear why Microsoft adds the precaution. This is a blacklist based approach and every blacklist has limitations. In addition, if there is a business need to use constructs that are blacklisted by validateRequest (e.g., Ajax apps that send xml back and forth), you may need to turn off this feature.       <br />Lets check what validateRequest does by cracking open the relevant dll&#8217;s.</p>
<p>.NET Framework 1.1 does the following checks as seen from the disassembly:       <br /><a href="http://www.kelath.net/blog/wp-content/uploads/2008/05/net11.jpg" ><img class="left" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="233" alt="CrossSiteScriptingValidation class for .NET 1.1" src="http://www.kelath.net/blog/wp-content/uploads/2008/05/net1-thumb1.jpg" width="402" border="0" /></a>        <br />Reading through the code, we see that the following items are checked - expression strings, JavaScript script and OnXXX handlers, &#8216;&lt;&#8217; followed by alpha characters and &quot;&amp;#&quot;. It is a decent list that        <br />catches most common XSS vectors.</p>
<p>.NET Framework 2.0 does the following checks as seen from the disassembly:       <br /><a href="http://www.kelath.net/blog/wp-content/uploads/2008/05/net21.jpg" ><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="217" alt="CrossSiteScriptingValidation class for .NET 2.0" src="http://www.kelath.net/blog/wp-content/uploads/2008/05/net2-thumb1.jpg" width="409" border="0" /></a>        <br />In this case, the following items are checked - &#8216;&lt;&#8217; followed by alpha characters and &quot;&amp;#&quot;.        <br />It appears that MS decided to <a href="http://phed.org/2008/04/23/aspnet-20-dumbs-down-request-validation/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://phed.org/2008/04/23/aspnet-20-dumbs-down-request-validation/');">dumb down request validation</a> when .NET framework went from 1.1 to 2.0.        <br />An important point to remember about &quot;validateRequest&quot; is that these protections are <a href="http://www.clariusconsulting.net/blogs/vga/archive/2003/05/02/55.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.clariusconsulting.net/blogs/vga/archive/2003/05/02/55.aspx');">given to only certain parts of the request</a>. Query Strings, Form variables and Cookies are protected. Header values, Server Variables, viewstate, information inside multi-part forms (e.g., file upload) are not validated.</p>
<p>From a developer&#8217;s perspective, the usefulness of this class is limited by the fact that it cannot be overridden or extended.</p>
</li>
<li><strong>Anti-XSS Library </strong>      <br />The Anti-XSS library is an exhaustive blacklist. The following screenshot shows all function calls in the library (ver 1.5). <a href="http://www.kelath.net/blog/wp-content/uploads/2008/05/antixss.jpg" ><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="359" alt="Ant-XSS library disassembly" src="http://www.kelath.net/blog/wp-content/uploads/2008/05/antixss-thumb.jpg" width="330" border="0" /></a>      <br />As seen in the disassembly above, the coverage of Anti-XSS library is quite good as it looks at JavaScript, VbScript, XML. Being a public class, it is possible to extend and override methods to suit your application needs.Use of this library entails downloading the latest dll and adding a reference to your web application project. </li>
<li><strong>Output Encoding</strong>      <br />This method involves the use of HttpUtility.HtmlEncode() call whenever you send information to the presentation layer. This process is not as automatic as the first two methods because the developer has to be more aware of where they are displaying data. </li>
</ul>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&amp;t=webpages&amp;url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to Ask' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/ask.png' style='width:16px; height:16px;' alt='[Ask]'  /></a> <a href='http://www.bloglines.com/sub/http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/' title='Save to Bloglines' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/bloglines.png' style='width:16px; height:16px;' alt='[Bloglines]'  /></a> <a href='http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to BlogMarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogmarks.png' style='width:16px; height:16px;' alt='[BlogMarks]'  /></a> <a href='http://www.blogsvine.com/submit.php?url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/' title='Save to Blogsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogsvine.png' style='width:16px; height:16px;' alt='[Blogsvine]'  /></a> <a href='http://www.citeulike.org/posturl?url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to CiteULike' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/citeulike.png' style='width:16px; height:16px;' alt='[CiteULike]'  /></a> <a href='http://del.icio.us/post?url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://www.facebook.com/share.php?u=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/' title='Save to Facebook' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/facebook.png' style='width:16px; height:16px;' alt='[Facebook]'  /></a> <a href='http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications&amp;url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/' title='Save to Feed Me Links' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/feedmelinks.png' style='width:16px; height:16px;' alt='[Feed Me Links]'  /></a> <a href='http://www.furl.net/storeIt.jsp?u=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;t=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to Furl' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/furl.png' style='width:16px; height:16px;' alt='[Furl]'  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google]'  /></a> <a href='http://ma.gnolia.com/bookmarklet/add?url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to Ma.gnolia' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/magnolia.png' style='width:16px; height:16px;' alt='[Ma.gnolia]'  /></a> <a href='http://www.myspace.com/Modules/PostTo/Pages/?c=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;t=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to MySpace' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/myspace.png' style='width:16px; height:16px;' alt='[MySpace]'  /></a> <a href='http://www.newsvine.com/_tools/seed?popoff=0&amp;u=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/' title='Seed Newsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/newsvine.png' style='width:16px; height:16px;' alt='[Newsvine]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.spurl.net/spurl.php?url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to Spurl.net' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/spurl.png' style='width:16px; height:16px;' alt='[Spurl.net]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;title=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;t=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=3 Ways to Prevent XSS vulnerabilities in ASP.NET web applications&amp;uri=http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email]'  /></a>  <a title='See more bookmark and sharing options...' href='http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.kelath.net/blog/3-ways-to-prevent-xss-vulnerabilities-in-aspnet-web-applications/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PCI Standard - Fall from grace?</title>
		<link>http://www.kelath.net/blog/pci-standard-fall-from-grace/</link>
		<comments>http://www.kelath.net/blog/pci-standard-fall-from-grace/#comments</comments>
		<pubDate>Mon, 05 May 2008 20:50:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[security]]></category>

		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.kelath.net/blog/index.php/2008/05/05/pci-standard-fall-from-grace/</guid>
		<description><![CDATA[There has been a lot of talk lately about what people perceive to be a problem with the Payment Card Industry (PCI) standard. PCI Council kicked up dust with their recent clarification about section 6.6:
Most of the security folks are peeved by the fact that an application firewall can be used in place of a [...]]]></description>
			<content:encoded><![CDATA[<p>There has been a lot of talk lately about what people perceive to be a problem with the Payment Card Industry (PCI) standard. PCI Council kicked up dust with their recent clarification about section 6.6:</p>
<p>Most of the security folks are peeved by the fact that an application firewall can be used in place of a code review. I agree with the nay-sayers from a purely technical perspective. Application firewalls do not protect you from attacks for which you cannot write good signatures&#8230;and there are many, many attacks that fall in this category (authentication, authorization etc, etc). Even for attacks such as SQL Injection and Cross Site Scripting, which the WAP are designed to mitigate, there may be new ways to circumvent the firewall. So, from a technical perspective it is pretty ineffective if an organization is pushing for security.</p>
<p>There lies the big problem. Most organizations do not really care about security. Customer data is just one piece of the puzzle to get their business done. The only reason companies take customer data seriously is because there are laws and the reputation loss. From a business and process perspective, it is just one cog of many. They know there is something called PCI and there are a few requirements to be met. And the PCI Council has given these companies a freebie in the form of web application firewall.</p>
<p>In my view, the whole issue about section 6.6 has to be taken in perspective. If an organization is to pass PCI requirements, they need to satisfy all sections. In other words, the PCI requirements also stipulate a lot of best practices - network segmentation (Req. 1), separation of duties (Req.6.3), good programming practices [OWASP Top 10] (Req.6.5), Regular vulnerability testing (Req.11) that needs to be satisfied. If a company wants to be PCI Compliant, they would ideally look at all of these and, in the process become compliant. Viewed in this light, the issue of web application firewall is a small one.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&amp;t=webpages&amp;url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Save to Ask' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/ask.png' style='width:16px; height:16px;' alt='[Ask]'  /></a> <a href='http://www.bloglines.com/sub/http://www.kelath.net/blog/pci-standard-fall-from-grace/' title='Save to Bloglines' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/bloglines.png' style='width:16px; height:16px;' alt='[Bloglines]'  /></a> <a href='http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Save to BlogMarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogmarks.png' style='width:16px; height:16px;' alt='[BlogMarks]'  /></a> <a href='http://www.blogsvine.com/submit.php?url=http://www.kelath.net/blog/pci-standard-fall-from-grace/' title='Save to Blogsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogsvine.png' style='width:16px; height:16px;' alt='[Blogsvine]'  /></a> <a href='http://www.citeulike.org/posturl?url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Save to CiteULike' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/citeulike.png' style='width:16px; height:16px;' alt='[CiteULike]'  /></a> <a href='http://del.icio.us/post?url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://www.facebook.com/share.php?u=http://www.kelath.net/blog/pci-standard-fall-from-grace/' title='Save to Facebook' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/facebook.png' style='width:16px; height:16px;' alt='[Facebook]'  /></a> <a href='http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=PCI Standard - Fall from grace?&amp;url=http://www.kelath.net/blog/pci-standard-fall-from-grace/' title='Save to Feed Me Links' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/feedmelinks.png' style='width:16px; height:16px;' alt='[Feed Me Links]'  /></a> <a href='http://www.furl.net/storeIt.jsp?u=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;t=PCI Standard - Fall from grace?' title='Save to Furl' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/furl.png' style='width:16px; height:16px;' alt='[Furl]'  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google]'  /></a> <a href='http://ma.gnolia.com/bookmarklet/add?url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Save to Ma.gnolia' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/magnolia.png' style='width:16px; height:16px;' alt='[Ma.gnolia]'  /></a> <a href='http://www.myspace.com/Modules/PostTo/Pages/?c=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;t=PCI Standard - Fall from grace?' title='Save to MySpace' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/myspace.png' style='width:16px; height:16px;' alt='[MySpace]'  /></a> <a href='http://www.newsvine.com/_tools/seed?popoff=0&amp;u=http://www.kelath.net/blog/pci-standard-fall-from-grace/' title='Seed Newsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/newsvine.png' style='width:16px; height:16px;' alt='[Newsvine]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.spurl.net/spurl.php?url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Save to Spurl.net' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/spurl.png' style='width:16px; height:16px;' alt='[Spurl.net]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;title=PCI Standard - Fall from grace?' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.kelath.net/blog/pci-standard-fall-from-grace/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;t=PCI Standard - Fall from grace?' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=PCI Standard - Fall from grace?&amp;uri=http://www.kelath.net/blog/pci-standard-fall-from-grace/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email]'  /></a>  <a title='See more bookmark and sharing options...' href='http://www.kelath.net/blog/pci-standard-fall-from-grace/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.kelath.net/blog/pci-standard-fall-from-grace/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Encryption/Decryption using GnuPG</title>
		<link>http://www.kelath.net/blog/encryptiondecryption-using-gnupg/</link>
		<comments>http://www.kelath.net/blog/encryptiondecryption-using-gnupg/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 16:02:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[security]]></category>

		<category><![CDATA[technology]]></category>

		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.kelath.net/blog/encryptiondecryption-using-gnupg/15/</guid>
		<description><![CDATA[So you have decided to make the jump to using encryption to protect sensitive information on the hard disk and while sending across the Internet. Great!. One of the best freeware programs available is GnuPG.
To get started, install gpg4win. Download, double-click on the downloaded file and you are good to go. After installation, when you [...]]]></description>
			<content:encoded><![CDATA[<p>So you have decided to make the jump to using encryption to protect sensitive information on the hard disk and while sending across the Internet. Great!. One of the best freeware programs available is <b>GnuPG</b>.</p>
<p>To get started, install <a href="http://www.gpg4win.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.gpg4win.org/');">gpg4win</a>. Download, double-click on the downloaded file and you are good to go. After installation, when you right-click on a file, you should see a new option, GPGee,&#160; in your menu. This means everything went well with the install.</p>
<p>Now to go Start -&gt; Programs -&gt;&#160; <b>GnuPG</b> For Windows -&gt; GPA</p>
<p>GPA (Gnu Privacy Assistant) is the heart of this program. What we will do next is generate keys for you to use. You see, this type of encryption depends on &#8220;<em>keys</em>&#8221; that have your unique signature. The only personal identification in the keys are your name and email address. I would suggest putting in your real name and a real email address you use. This is so others can find your keys easily. These keys are meant to be made public.</p>
<p>If you already have your own keys, skip forward to the &#8220;key import&#8221; section.</p>
<p><strong>0. Generate Keys</strong></p>
<p>When you started GPG, the program probably came up asking if you want to generate keys.</p>
<p>Say &#8220;Generate Keys&#8221; at this screen. You will be asked for your name and email address and a password and the program will generate a key for you in a few seconds. This key will show up in your &#8220;keyring&#8221;. A keyring is where you store your own key and other user&#8217;s keys. Your key is protected by the password you entered, so don&#8217;t forget the password. The initial keyring will just have the key you just generated.</p>
<p><strong>1. Encrypting/Decrypting <b>Files</b></strong></p>
<p>To encrypt a file, right-click on the file and select &#8220;GPGee -&gt; Sign and Encrypt&#8221;.</p>
<p>A window will pop up that will list all the keys that can be used to encrypt. First choose the encryption key&#160; (box at top) by checking the box. Next, select the signing key.</p>
<p>After you click &#8220;ok&#8221;, you will see a file with a <em>*.gpg</em> extension in the same folder. This is the encrypted version of the file.</p>
<p>To <b>decrypt</b> a file, we need to reverse this process. First, right-click on the encrypted file and choose &#8220;GPGee -&gt; Verify/<b>Decrypt</b>&#8221;. This will ask for your password to unlock your key that will be used for decryption. You should get a success message box after decryption. The decrypted file will show up in the same folder.</p>
<p><strong>2. Sending encrypted emails</strong></p>
<p>Unfortunately,there is no easy way to use <b>GnuPG</b> to send encrypted emails. </p>
<p><em>Update</em>: You can use thunderbird with Enigmail to automate this process.</p>
<p>Here&#8217;s what you can do.</p>
<ol>
<li>Write your email in notepad or another text editor. Save the file. </li>
<li>Encrypt this file to get a file with *.gpg extension </li>
<li>Open the *.gpg file in notepad or another text editor </li>
<li>Use Ctrl+A to select the data in the file, Ctrl+C to copy the data </li>
<li>Paste this into your email client (Outlook, Hotmail, GMail whatever you use) </li>
</ol>
<p>To <b>decrypt</b> any encrypted emails that you get:</p>
<ol>
<li>Copy full email from your email client </li>
<li>Paste this into notepad or another text editor </li>
<li>Save the file with a *.gpg extension </li>
<li><b>Decrypt</b> the file using the discussion in section 1. </li>
<li>The decrypted file will show up in the same folder </li>
</ol>
<p><strong>3. Sharing your key with others</strong></p>
<p>This method of encryption works only when you have the keys of the people you want to send encrypted <b>files</b>/emails to. Others who need to send you encrypted <b>files</b> or emails need to know your keys also.</p>
<ol>
<li>Start up GPA (Start -&gt; Programs -&gt; <b>GnuPG</b> for Windows) </li>
<li>Click on your key </li>
<li>Click Export button and give it a file name </li>
<li>Your key will be saved to a file. </li>
</ol>
<p>This file can then be emailed to anyone you choose. These <b>files</b> are meant to be public and do not have any sensitive information.</p>
<p><strong>4. Importing keys from other users</strong></p>
<ol>
<li>Start up GPA (Start -&gt; Programs -&gt; <b>GnuPG</b> for Windows) </li>
<li>Click Import button </li>
<li>You&#8217;ll be asked for a file to import keys from. Select the file and click OK </li>
</ol>
<p>Now the newly imported key will show up in your keyring.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&amp;t=webpages&amp;url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Save to Ask' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/ask.png' style='width:16px; height:16px;' alt='[Ask]'  /></a> <a href='http://www.bloglines.com/sub/http://www.kelath.net/blog/encryptiondecryption-using-gnupg/' title='Save to Bloglines' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/bloglines.png' style='width:16px; height:16px;' alt='[Bloglines]'  /></a> <a href='http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Save to BlogMarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogmarks.png' style='width:16px; height:16px;' alt='[BlogMarks]'  /></a> <a href='http://www.blogsvine.com/submit.php?url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/' title='Save to Blogsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogsvine.png' style='width:16px; height:16px;' alt='[Blogsvine]'  /></a> <a href='http://www.citeulike.org/posturl?url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Save to CiteULike' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/citeulike.png' style='width:16px; height:16px;' alt='[CiteULike]'  /></a> <a href='http://del.icio.us/post?url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://www.facebook.com/share.php?u=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/' title='Save to Facebook' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/facebook.png' style='width:16px; height:16px;' alt='[Facebook]'  /></a> <a href='http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Encryption/Decryption using GnuPG&amp;url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/' title='Save to Feed Me Links' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/feedmelinks.png' style='width:16px; height:16px;' alt='[Feed Me Links]'  /></a> <a href='http://www.furl.net/storeIt.jsp?u=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;t=Encryption/Decryption using GnuPG' title='Save to Furl' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/furl.png' style='width:16px; height:16px;' alt='[Furl]'  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google]'  /></a> <a href='http://ma.gnolia.com/bookmarklet/add?url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Save to Ma.gnolia' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/magnolia.png' style='width:16px; height:16px;' alt='[Ma.gnolia]'  /></a> <a href='http://www.myspace.com/Modules/PostTo/Pages/?c=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;t=Encryption/Decryption using GnuPG' title='Save to MySpace' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/myspace.png' style='width:16px; height:16px;' alt='[MySpace]'  /></a> <a href='http://www.newsvine.com/_tools/seed?popoff=0&amp;u=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/' title='Seed Newsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/newsvine.png' style='width:16px; height:16px;' alt='[Newsvine]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.spurl.net/spurl.php?url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Save to Spurl.net' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/spurl.png' style='width:16px; height:16px;' alt='[Spurl.net]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;title=Encryption/Decryption using GnuPG' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;t=Encryption/Decryption using GnuPG' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Encryption/Decryption using GnuPG&amp;uri=http://www.kelath.net/blog/encryptiondecryption-using-gnupg/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email]'  /></a>  <a title='See more bookmark and sharing options...' href='http://www.kelath.net/blog/encryptiondecryption-using-gnupg/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.kelath.net/blog/encryptiondecryption-using-gnupg/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ajax Security Basics on Securityfocus</title>
		<link>http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/</link>
		<comments>http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/#comments</comments>
		<pubDate>Thu, 22 Jun 2006 06:38:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/7/</guid>
		<description><![CDATA[My recent paper has been published on Securityfocus.com. It focuses on the basics of Ajax security.
                     More&#160;&#187;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.securityfocus.com/infocus/1868" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.securityfocus.com/infocus/1868');">My recent paper has been published on Securityfocus.com</a>. It focuses on the basics of Ajax security.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&amp;t=webpages&amp;url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Save to Ask' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/ask.png' style='width:16px; height:16px;' alt='[Ask]'  /></a> <a href='http://www.bloglines.com/sub/http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/' title='Save to Bloglines' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/bloglines.png' style='width:16px; height:16px;' alt='[Bloglines]'  /></a> <a href='http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Save to BlogMarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogmarks.png' style='width:16px; height:16px;' alt='[BlogMarks]'  /></a> <a href='http://www.blogsvine.com/submit.php?url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/' title='Save to Blogsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogsvine.png' style='width:16px; height:16px;' alt='[Blogsvine]'  /></a> <a href='http://www.citeulike.org/posturl?url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Save to CiteULike' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/citeulike.png' style='width:16px; height:16px;' alt='[CiteULike]'  /></a> <a href='http://del.icio.us/post?url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://www.facebook.com/share.php?u=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/' title='Save to Facebook' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/facebook.png' style='width:16px; height:16px;' alt='[Facebook]'  /></a> <a href='http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Ajax Security Basics on Securityfocus&amp;url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/' title='Save to Feed Me Links' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/feedmelinks.png' style='width:16px; height:16px;' alt='[Feed Me Links]'  /></a> <a href='http://www.furl.net/storeIt.jsp?u=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;t=Ajax Security Basics on Securityfocus' title='Save to Furl' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/furl.png' style='width:16px; height:16px;' alt='[Furl]'  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google]'  /></a> <a href='http://ma.gnolia.com/bookmarklet/add?url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Save to Ma.gnolia' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/magnolia.png' style='width:16px; height:16px;' alt='[Ma.gnolia]'  /></a> <a href='http://www.myspace.com/Modules/PostTo/Pages/?c=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;t=Ajax Security Basics on Securityfocus' title='Save to MySpace' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/myspace.png' style='width:16px; height:16px;' alt='[MySpace]'  /></a> <a href='http://www.newsvine.com/_tools/seed?popoff=0&amp;u=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/' title='Seed Newsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/newsvine.png' style='width:16px; height:16px;' alt='[Newsvine]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.spurl.net/spurl.php?url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Save to Spurl.net' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/spurl.png' style='width:16px; height:16px;' alt='[Spurl.net]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;title=Ajax Security Basics on Securityfocus' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;t=Ajax Security Basics on Securityfocus' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Ajax Security Basics on Securityfocus&amp;uri=http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email]'  /></a>  <a title='See more bookmark and sharing options...' href='http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.kelath.net/blog/ajax-security-basics-on-securityfocus/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Set Up WordPress the Easy Way</title>
		<link>http://www.kelath.net/blog/set-up-wordpress-the-easy-way/</link>
		<comments>http://www.kelath.net/blog/set-up-wordpress-the-easy-way/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 00:10:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kelath.net/blog/2006/01/23/set-up-wordpress-the-easy-way/</guid>
		<description><![CDATA[I got my domain name through godaddy with the intention of setting up my own blog using Wordpress. As usual, I did not do as much research as I should have on the subject. After the domain name was set up, I discovered that godaddy with windows hosting did not play nicely with wordpress. The [...]]]></description>
			<content:encoded><![CDATA[<p>I got my domain name through godaddy with the intention of setting up my own blog using Wordpress. As usual, I did not do as much research as I should have on the subject. After the domain name was set up, I discovered that godaddy with windows hosting did not play nicely with wordpress. The Net is littered with complaints about issues people were having with their Wordpress install because of the way godaddy handles the MySQL servers. The problem seemed to be that most people could not get the php scripts to connect to the MySQL database they had set up. </p>
<p>I had almost given up on installing Wordpress when google found me this illuminating article on GoDaddy and Wordpress, which had links to a couple of other sites with detailed instructions on the setup. </p>
<p>This is what you do: </p>
<p>&#160;&#160; 1. Identify the required database information   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * Login to GoDaddy.com    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * Go to &#8220;Host &amp; Servers&#8221; -&gt;&#8221;My Hosting Account&#8221;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * Select your registered domain and click &#8220;Open&#8221; in the Control Panel.    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * Scroll down to Databases and click on MySQL icon    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * It should now show you the Database Name, Host Name and Username    <br />&#160;&#160; 2. Input the exact Database Name into the wp-config.php file: </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; define(&#8217;DB_HOST&#8217;, &#8216;mysql95.secureserver.net&#8217;); </p>
<p>&#160;&#160;&#160;&#160;&#160; This is near the top of the file.   <br />&#160;&#160; 3. Comment the following lines in wp-settings.php </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //if ( !extension_loaded(&#8217;mysql&#8217;) )   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // die( &#8216;Your PHP installation appears to be missing the MySQL which is required for WordPress.&#8217; ); </p>
<p>&#160;&#160;&#160;&#160;&#160; I am not sure why these lines need to be commented out even though the MySQL extensions has been loaded. </p>
<p>Finally, go through the Famous 5-minute install for Wordpress and you are done!. </p>
<p>Thanks to whoami and pradob at Wordpress Installation Support </p>
<p>Update Apr 17, 2006: Everything was going fine till I needed to install plugins. For the life of me, I could not get plugins recognized in the admin folder. I kept getting the &#8220;Couldn&#8217;t open Plugins folder or Plugins were not found&#8221; error message. I should mention that my Wordpress blog is hosted on godaddy servers with PHP and IIS. Here&#8217;s the fix for the error (credit goes to Jason). </p>
<p>Open the file &#8220;wp-admin/admin-functions.php&#8221; and find the following line. Replace the old line with the new line. </p>
<p>&#160;&#160;&#160; function get_plugin_data($plugin_file) {   <br />&#160;&#160;&#160; //$plugin_data = implode(&#8217;&#8217;, file($plugin_file));    <br />&#160;&#160;&#160; $plugin_data = file_get_contents($plugin_file); </p>
<p>Plugins will start working with this change.</p>
<p>Update May 15, 2008: WordPress works so much better on Linux!. Everything simply works out of the box, no tweaking needed.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&amp;t=webpages&amp;url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Save to Ask' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/ask.png' style='width:16px; height:16px;' alt='[Ask]'  /></a> <a href='http://www.bloglines.com/sub/http://www.kelath.net/blog/set-up-wordpress-the-easy-way/' title='Save to Bloglines' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/bloglines.png' style='width:16px; height:16px;' alt='[Bloglines]'  /></a> <a href='http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Save to BlogMarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogmarks.png' style='width:16px; height:16px;' alt='[BlogMarks]'  /></a> <a href='http://www.blogsvine.com/submit.php?url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/' title='Save to Blogsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/blogsvine.png' style='width:16px; height:16px;' alt='[Blogsvine]'  /></a> <a href='http://www.citeulike.org/posturl?url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Save to CiteULike' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/citeulike.png' style='width:16px; height:16px;' alt='[CiteULike]'  /></a> <a href='http://del.icio.us/post?url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://www.facebook.com/share.php?u=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/' title='Save to Facebook' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/facebook.png' style='width:16px; height:16px;' alt='[Facebook]'  /></a> <a href='http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Set Up WordPress the Easy Way&amp;url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/' title='Save to Feed Me Links' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/feedmelinks.png' style='width:16px; height:16px;' alt='[Feed Me Links]'  /></a> <a href='http://www.furl.net/storeIt.jsp?u=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;t=Set Up WordPress the Easy Way' title='Save to Furl' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/furl.png' style='width:16px; height:16px;' alt='[Furl]'  /></a> <a href='http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Save to Google Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/google.png' style='width:16px; height:16px;' alt='[Google]'  /></a> <a href='http://ma.gnolia.com/bookmarklet/add?url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Save to Ma.gnolia' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/magnolia.png' style='width:16px; height:16px;' alt='[Ma.gnolia]'  /></a> <a href='http://www.myspace.com/Modules/PostTo/Pages/?c=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;t=Set Up WordPress the Easy Way' title='Save to MySpace' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/myspace.png' style='width:16px; height:16px;' alt='[MySpace]'  /></a> <a href='http://www.newsvine.com/_tools/seed?popoff=0&amp;u=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/' title='Seed Newsvine' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/newsvine.png' style='width:16px; height:16px;' alt='[Newsvine]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.spurl.net/spurl.php?url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Save to Spurl.net' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/spurl.png' style='width:16px; height:16px;' alt='[Spurl.net]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;title=Set Up WordPress the Easy Way' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;t=Set Up WordPress the Easy Way' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Set Up WordPress the Easy Way&amp;uri=http://www.kelath.net/blog/set-up-wordpress-the-easy-way/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://www.kelath.net/blog/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email]'  /></a>  <a title='See more bookmark and sharing options...' href='http://www.kelath.net/blog/set-up-wordpress-the-easy-way/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.kelath.net/blog/set-up-wordpress-the-easy-way/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
