<?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>TylerBurton.ca &#187; PGP</title>
	<atom:link href="http://www.tylerburton.ca/tag/pgp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tylerburton.ca</link>
	<description></description>
	<lastBuildDate>Wed, 25 Aug 2010 21:19:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>RSA-768: Nothing to worry about</title>
		<link>http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/</link>
		<comments>http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 01:19:35 +0000</pubDate>
		<dc:creator>Tyler Burton</dc:creator>
				<category><![CDATA[Computer security]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[Asymmetric Encryption]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[ElGamal]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[Public Key]]></category>
		<category><![CDATA[RSA]]></category>
		<category><![CDATA[RSA-768]]></category>

		<guid isPermaLink="false">http://www.tylerburton.ca/?p=256</guid>
		<description><![CDATA[I have been meaning to write up a short post about this for a while, but thanks to the start of a new school term I have been a bit busy. If you have seen the security news in the last month or so you will know that RSA-768, a 768bit or 232 decimal digit [...]]]></description>
			<content:encoded><![CDATA[<p>I have been meaning to write up a short post about this for a while, but thanks to the start of a new school term I have been a bit busy.</p>
<p>If you have seen the <a href="http://science.slashdot.org/story/10/01/07/1623249/Factorization-of-a-768-Bit-RSA-Modulus?from=rss&amp;utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+Slashdot%2Fslashdot+%28Slashdot%29" target="_blank">security news</a> in the last month or so you will know that RSA-768, a 768bit or 232 decimal digit asymmetric key, has been broken (factored). This has <a href="http://www.schneier.com/blog/archives/2010/01/768-bit_number.html" target="_blank">important security repercussions</a> for all of us because it is these public key algorithms like <a href="http://en.wikipedia.org/wiki/RSA" target="_blank">RSA</a>, or <a href="http://en.wikipedia.org/wiki/ElGamal_encryption" target="_blank">ElGamal</a>, that guard our <a href="http://en.wikipedia.org/wiki/Transport_Layer_Security" target="_blank">online transactions</a>, and <a href="http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/" target="_blank">e-mail conversations</a>.</p>
<h2>So just how much should we be worrying about this newest &#8216;break&#8217;?</h2>
<p>When it comes to public key cryptography it is important to remember that their security is essentially in our inability to factor them quickly. The only real way that public key cryptography could be considered broken is if we find a way to <a href="http://en.wikipedia.org/wiki/Shor%27s_algorithm" target="_blank">drastically increase</a> our ability to factor massive prime numbers. Thankfully that time is still far away. In fact after digging into the news articles a little more it quickly became obvious that the feat of factoring a 768bit key, <a href="http://arstechnica.com/security/news/2010/01/768-bit-rsa-cracked-1024-bit-safe-for-now.ars" target="_blank">while incredibly difficult</a>, was inevitable.</p>
<h2>So what now?</h2>
<p>Nothing. Currently the most popular asymmetric key size in use is 1024bit, which represents a work load increase of over 1000 times when compared to RSA-768. Still afraid? Check out <a href="http://en.wikipedia.org/wiki/RSA_numbers" target="_blank">the list of RSA challenges</a> that have been issued over the years and just how few have actually be &#8216;broken&#8217;.</p>
<p>In choosing my current <a href="http://en.wikipedia.org/wiki/Pretty_Good_Privacy" target="_blank">PGP</a>/<a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard" target="_blank">GPG</a> public key I decided to go with a 2048bit one, which, according to all accounts, will be safe for years to come. As always, <a href="http://www.tylerburton.ca/2009/09/security-tip-2-key-lengths/" target="_blank">I recommend</a> checking out <a href="http://www.keylength.com/" target="_blank">this site</a> for the most up to date key length recommendations from the world&#8217;s foremost cryptography experts.</p>
<h2>There you have it</h2>
<p>With the knowledge that you&#8217;re online transactions are still perfectly safe you have nothing to worry about.</p>
<p>For reference, the currently recommended key lengths for asymmetric encryption algorithms, like RSA, are 1976bit (BSI recommendation for use after 2016), 2048bit (NSA recommendation for current and future use), and 2432 (ECRYPT II recommendation for protection until at least 2030).</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/&amp;title=RSA-768%3A+Nothing+to+worry+about" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/&amp;title=RSA-768%3A+Nothing+to+worry+about" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/&amp;t=RSA-768%3A+Nothing+to+worry+about" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/&amp;title=RSA-768%3A+Nothing+to+worry+about" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/&amp;title=RSA-768%3A+Nothing+to+worry+about" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/&amp;title=RSA-768%3A+Nothing+to+worry+about" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=RSA-768%3A+Nothing+to+worry+about+-+http://b2l.me/dkmqg&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.tylerburton.ca/2010/01/rsa-768-nothing-to-worry-about/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrated to a new PGP key</title>
		<link>http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/</link>
		<comments>http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 16:13:28 +0000</pubDate>
		<dc:creator>Tyler Burton</dc:creator>
				<category><![CDATA[Computer security]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[DSA]]></category>
		<category><![CDATA[ElGamal]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[Public Key]]></category>
		<category><![CDATA[RSA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SHA1]]></category>

		<guid isPermaLink="false">http://www.tylerburton.ca/?p=190</guid>
		<description><![CDATA[Well GPG to be more accurate As my existing key was set to expire at the end of this year I have issued myself a brand new one! After much though I finally decided that creating a new key from scratch was the best idea, rather than simply adding a new subkey, because I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Well <a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard" target="_blank">GPG</a> to be more accurate <img src='http://www.tylerburton.ca/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>As my existing key was set to expire at the end of this year I have issued myself a brand new one! After much though I finally decided that creating a new key from scratch was the best idea, rather than simply adding a new subkey, because I wanted to move away from <a href="http://en.wikipedia.org/wiki/Digital_Signature_Algorithm" target="_blank">DSA</a>/<a href="http://en.wikipedia.org/wiki/ElGamal_encryption" target="_blank">ElGamal</a> toward <a href="http://en.wikipedia.org/wiki/RSA" target="_blank">RSA</a> primarily because of the weakening of <a href="http://www.schneier.com/blog/archives/2005/02/sha1_broken.html" target="_blank">SHA1</a>. If this all sounds like gibberish to you then don&#8217;t worry, the details aren&#8217;t nearly as important as the security provided by my new key.</p>
<p>If you&#8217;d like to make use of my new key please head over to the <a href="http://www.tylerburton.ca/about/" target="_blank">About Me</a> section where you will find it!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/&amp;title=Migrated+to+a+new+PGP+key" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/&amp;title=Migrated+to+a+new+PGP+key" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/&amp;t=Migrated+to+a+new+PGP+key" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/&amp;title=Migrated+to+a+new+PGP+key" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/&amp;title=Migrated+to+a+new+PGP+key" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/&amp;title=Migrated+to+a+new+PGP+key" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Migrated+to+a+new+PGP+key+-+http://b2l.me/b35pw&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.tylerburton.ca/2009/12/migrated-to-a-new-pgp-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pondering the best way to migrate to a new PGP key</title>
		<link>http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/</link>
		<comments>http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 02:55:36 +0000</pubDate>
		<dc:creator>Tyler Burton</dc:creator>
				<category><![CDATA[Computer security]]></category>
		<category><![CDATA[DSS]]></category>
		<category><![CDATA[ElGamal]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[key migration]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[RSA]]></category>
		<category><![CDATA[SHA1]]></category>

		<guid isPermaLink="false">http://www.tylerburton.ca/?p=134</guid>
		<description><![CDATA[Well its almost time for me to create a new PGP key. My current key for tyler at tylerburton dot ca is set to expire at the end of the year and I am trying to determine what the best way to migrate to a new key is. Some people suggest simply adding a new [...]]]></description>
			<content:encoded><![CDATA[<p>Well its almost time for me to create a new <a href="http://en.wikipedia.org/wiki/Pretty_Good_Privacy" target="_blank">PGP key</a>. My current key for tyler at tylerburton dot ca is set to expire at the end of the year and I am trying to determine what the best way to migrate to a new key is. Some people suggest simply adding a new encryption sub key and then changing the original signing key&#8217;s expiry date so that individuals wishing to verify your signatures can continue to do so uninterrupted. Unfortunately my current key is an <a href="http://en.wikipedia.org/wiki/ElGamal_encryption" target="_blank">ElGamal</a>/<a href="http://en.wikipedia.org/wiki/Digital_Signature_Algorithm" target="_blank">DSS</a> based one and, after the recent increased <a href="http://csrc.nist.gov/groups/ST/hash/statement.html" target="_blank">attacks on SHA1</a>, I would really prefer to move to an <a href="http://en.wikipedia.org/wiki/RSA" target="_blank">RSA</a> based key.</p>
<p>Alas I think I&#8217;m going to have to just create a new key and sign it with the current one. If anyone has any better alternatives please let me know!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/&amp;title=Pondering+the+best+way+to+migrate+to+a+new+PGP+key" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/&amp;title=Pondering+the+best+way+to+migrate+to+a+new+PGP+key" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/&amp;t=Pondering+the+best+way+to+migrate+to+a+new+PGP+key" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/&amp;title=Pondering+the+best+way+to+migrate+to+a+new+PGP+key" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/&amp;title=Pondering+the+best+way+to+migrate+to+a+new+PGP+key" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/&amp;title=Pondering+the+best+way+to+migrate+to+a+new+PGP+key" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Pondering+the+best+way+to+migrate+to+a+new+PGP+key+-+http://b2l.me/byb9t&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.tylerburton.ca/2009/11/pondering-the-best-way-to-migrate-to-a-new-pgp-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security tip #3: public key cryptography &amp; PGP</title>
		<link>http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/</link>
		<comments>http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:58:51 +0000</pubDate>
		<dc:creator>Tyler Burton</dc:creator>
				<category><![CDATA[Computer security]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[GnuPG]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[OpenPGP]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://www.tylerburton.ca/?p=43</guid>
		<description><![CDATA[Public key cryptography is one of the most essential pieces to online security. It is at the root of what enables you to shop online, do secure online banking, and communicate securely. I will be focusing on the latter in this tip. But first a quick and simple refresher on what public key cryptography is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Public-key_cryptography" target="_blank">Public key cryptography</a> is one of the most essential pieces to <a href="http://en.wikipedia.org/wiki/Transport_Layer_Security" target="_blank">online security</a>. It is at the root of what enables you to shop online, do secure online banking, and communicate securely. I will be focusing on the latter in this tip. But first a quick and simple refresher on what public key cryptography is and how it works.</p>
<h2>How public key cryptography works</h2>
<p>Or rather how you use it. Cryptography allows you can lock any data or information inside of a digital safe. Generally this is done through the use of a shared key (password). This is similar to how you, and only you, can log on to your <a href="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access" target="_blank">home wireless internet</a>. But what if you don&#8217;t already have a shared key? This is where public key cryptography comes in to play.</p>
<p>Public key crypto works by using two keys instead of one. We will call these keys the public key and the private key. The public key can be thought of as your listing in a phone book, you want everyone to be able to get a hold of it in case they need to get a hold of you. The private key on the other hand is like your voice mail password, you only want one person to know it: you.</p>
<p>Messages and data encrypted with your public key are put into a digital safe that can&#8217;t be opened by anyone, even the person who just put the data into the safe, except you. This is important because it means anyone and everyone can encrypt things to send to you but you will be the only one able to decrypt them, or open the safe.</p>
<p>OK, so I can encrypt things with your public key and only you can open it. Now what?</p>
<p>Now we use it to send private e-mail.</p>
<h2>Pretty Good Privacy (PGP)</h2>
<p><a href="http://en.wikipedia.org/wiki/Pretty_Good_Privacy" target="_blank">PGP</a> uses a system of keys which are actually just public and private keys. If I want to send you a private e-mail I just need to get a hold of your public key. For added integrity I could also <a href="http://en.wikipedia.org/wiki/Digital_signature" target="_blank">sign the message</a> using my private key, which you could then in turn verify with my public key, but that is beyond the scope of this post. Set up correctly not only does PGP allow me to receive secure e-mails, that no one but me can read, but also verify that the person who actually sent me the e-mail is who I think it is.</p>
<h2>GNU Privacy Guard (GnuPG)</h2>
<p><a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard" target="_blank">GnuPG</a> is a a free and open source implementation of <a href="http://en.wikipedia.org/wiki/Pretty_Good_Privacy#OpenPGP" target="_blank">OpenPGP</a> that is very common. Most Linux distributions come equipped with it by default but Windows users will most likely need to download it. Several e-mail clients also integrate seamlessly with GnuPG which makes things very easy. Others, like <a href="http://en.wikipedia.org/wiki/Microsoft_Outlook" target="_blank">Outlook</a> and <a href="http://en.wikipedia.org/wiki/Mozilla_Thunderbird" target="_blank">Thunderbird</a>, simply require an add-on.</p>
<h2>How to get GnuPG</h2>
<p>This is a simple step but is crucial to getting everything to work. Jump over to the official website, <a href="http://www.gnupg.org/" target="_blank">http://www.gnupg.org/</a>, or hop right over to their <a href="http://www.gnupg.org/download/index.en.html" target="_blank">download section here</a> and grab a copy of it. For Window&#8217;s users you can just grab the binary, indicated by the letter <em>B</em>, while Linux and Mac users should either look in their software repositories or follow the links available. Once installed GnuPG, or <em>gpg</em> as it will be called, should be good to go.</p>
<h2>Generate your first key</h2>
<p>There are a number of different ways to generate your keys, from within the terminal or command line to within your favourite e-mail client. Rather than cover all of the numerous possible ways that you <em>could</em> generate your key I&#8217;m going to only cover two: the terminal and from within Thunderbird (see below).</p>
<p><strong>1.</strong> Open up a terminal or a command prompt</p>
<p><strong>2.</strong> Type:</p>
<blockquote><p>gpg &#8211;gen-key</p></blockquote>
<p>That&#8217;s two dashes before &#8220;gen&#8221;</p>
<p><strong>3.</strong> This should prompt you with the following options:</p>
<blockquote><p>Please select what kind of key you want:<br />
(1) DSA and Elgamal (default)<br />
(2) DSA (sign only)<br />
(5) RSA (sign only)<br />
Your selection?</p></blockquote>
<p>As you can see there are a couple of different options. Let&#8217;s break it down a little. <a href="http://en.wikipedia.org/wiki/Digital_Signature_Algorithm" target="_blank">Digital Signature Algorithm</a>, is the standard way of signing messages. <a href="http://en.wikipedia.org/wiki/ElGamal_encryption" target="_blank">El Gamal</a> is a widespread way of encrypting a message. Finally <a href="http://en.wikipedia.org/wiki/RSA" target="_blank">RSA</a> is a versatile algorithm that can do both (don&#8217;t worry about the <em>sign only</em> part of #5, we can fix that later).</p>
<p>For your first key I recommend making a test key just so you can familiarize yourself with the steps required.</p>
<p><strong>4.</strong> Type the number &#8220;1&#8243; and press Enter. It should now be asking you what size you want the key to be.</p>
<blockquote><p>DSA keypair will have 1024 bits.<br />
ELG-E keys may be between 1024 and 4096 bits long.<br />
What keysize do you want? (2048)</p></blockquote>
<p>The <a href="http://www.tylerburton.ca/2009/09/security-tip-2-key-lengths/" target="_blank">current recommendations</a> seem to be that a 2048 bit key is a very good idea. Creating a larger key will make it more secure but might take a bit longer to generate the key. For now let&#8217;s just go with the default 2048. Press enter.</p>
<p><strong>5.</strong> Next gpg will ask you how long the key should be valid for. This expiry date is important because should you lose your key, or have it compromised, you will at least feel good that eventually it will become invalid. For this example key we will set it to expire tomorrow. In order to do so type &#8220;1&#8243; and press enter. If you wanted it to expire in one week, month, or even year you just need to instead type &#8220;1w&#8221;, &#8220;1m&#8221;, or &#8220;1y&#8221; respectively.</p>
<blockquote><p>Please specify how long the key should be valid.<br />
0 = key does not expire<br />
&lt;n&gt;  = key expires in n days<br />
&lt;n&gt;w = key expires in n weeks<br />
&lt;n&gt;m = key expires in n months<br />
&lt;n&gt;y = key expires in n years<br />
Key is valid for? (0)</p></blockquote>
<p><strong>6.</strong> This is where you would enter your personal information. You don&#8217;t want to lie about this because this key is meant to identify you as <em>you</em> and only <em>you</em>! However for this example I am going to enter the following information:</p>
<blockquote><p>You need a user ID to identify your key; the software constructs the user ID<br />
from the Real Name, Comment and Email Address in this form:<br />
&#8220;Heinrich Heine (Der Dichter) &lt;heinrichh@duesseldorf.de&gt;&#8221;</p>
<p>Real name: Test Key<br />
Email address: testkey@tylerburton.ca<br />
Comment:<br />
You selected this USER-ID:<br />
&#8220;Test Key &lt;testkey@tylerburton.ca&gt;&#8221;</p></blockquote>
<p>Once you have verified this information type &#8220;o&#8221; and hit enter for &#8220;OK&#8221;</p>
<p><strong>7.</strong> It will now prompt you for a passphrase. A passphrase gives your key some additional security. Once your key is generated you want to make sure that <strong>no one</strong> else can get a hold of your private key. If someone does don&#8217;t panic, there are ways for you to revoke the key, but a lot of damage can still be done with someone reading your encrypted e-mails or impersonating you. A passphrase makes it difficult for someone to decrypt your e-mail or impersonate you <em>even if</em> they have a copy of your secret key.</p>
<p><strong>8.</strong> One you finish this GnuPG will generate the large prime numbers used in your key. This may take a while depending on the hardware you are running. When it&#8217;s done you will be shown your key&#8217;s information. It should look something like this:</p>
<blockquote><p>pub   1024D/E1775F9E 2009-10-04 [expires: 2009-10-05]<br />
Key fingerprint = 6DD1 5B41 1279 03E5 1088  225C 5B1B 90A9 E177 5F9E<br />
uid                  Test Key &lt;testkey@tylerburton.ca&gt;<br />
sub   2048g/4DDF6291 2009-10-04 [expires: 2009-10-05]</p></blockquote>
<p><strong>9.</strong> That&#8217;s it! You now have a key that you can use to securely encrypt your e-mail and files. Just be sure to get your public key out to as many people as possible. You can even upload it to a public key server so others can easily retrieve it.</p>
<h2>Setting up Thunderbird</h2>
<p>Obviously these instructions will only work if you use Thunderbird as your mail client. That being said a quick <a href="http://www.google.com" target="_blank">google</a> search provide you with all of the answers you&#8217;ll need to set up PGP with your e-mail client of choice.</p>
<p><strong>1.</strong> Download and install the <a href="https://addons.mozilla.org/en-US/thunderbird/addon/71" target="_blank">Enigmail</a> add-on for Thunderbird.</p>
<p><strong>2.</strong> This will add a title bar option labeled &#8220;OpenPGP.&#8221; You may want to turn on expert mode to give yourself some extra options but that&#8217;s your choice. Inside of this menu you will find something called &#8220;Key Management.&#8221; If you click this, it will show you all of the keys you have stored in your <em>key ring</em>. The ones for which you have a private key are highlighted in <strong>bold</strong>.</p>
<p><strong>3. </strong>Next go into your account settings and you&#8217;ll notice a new option called &#8220;OpenPGP Security.&#8221; Click this and check the box called &#8220;Enable OpenPGP support.&#8221; This will add two small icons to the bottom of your new e-mail composition window. One looks like a pen and when it is highlighted means you will sign the e-mail, proving that you were the one who sent it. The other is a key; if you have the recipient&#8217;s public key you can use this to encrypt the message you are sending so that no one else will be able to read it. Take a look at the options provided and set it up to your liking.</p>
<p><strong>4.</strong> That&#8217;s it! You now have PGP support for your e-mail! If you feel like creating a new key, or even your first key, I would suggest doing so from the Key Manager inside of Enigmail instead of via the command line. It provides a very easy wizard to walk you through.</p>
<h2>Final points</h2>
<p><strong>1.</strong> Hopefully this mini-guide  hasn&#8217;t scared you away from trying PGP yourself. If you are asking yourself <em>&#8216;why should I even bother? I have nothing to hide&#8217;</em> you should take a moment while sending that next e-mail and consider if you instead wrote the same thing on a postcard and sent it on an around the world trip. This analogy gives you an idea of how little privacy your current e-mails have. As they are sent out over the internet they hop from server to server until they reach their destination. You have little to no control over what these servers do with your e-mail. Still have nothing to hide? Then you are far less concerned about identity theft then I am.</p>
<p><strong>2.</strong> I said above, when selecting what type of key to create, that if you chose RSA (sign only) you could still use it to encrypt e-mail. This is true and all you need to do is edit the key by typing:</p>
<blockquote><p>gpg &#8211;edit-key [e-mail address goes here]</p></blockquote>
<p>(that&#8217;s two dashes in front of edit-key) and then on the next prompt entering:</p>
<blockquote><p>addkey</p></blockquote>
<p>This will walk you through adding an additional subkey, this time used for encryption. Just follow the steps as before and you should be set!</p>
<p><strong>3.</strong> Remember PGP can be used for more things than just e-mail. You can also digitally sign documents and files or even encrypt them just like you can with your e-mail.</p>
<p><strong>4.</strong> Now that you have this set up I fully expect any e-mail being sent my way to make use of it <img src='http://www.tylerburton.ca/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/&amp;title=Security+tip+%233%3A+public+key+cryptography+%26+PGP" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/&amp;title=Security+tip+%233%3A+public+key+cryptography+%26+PGP" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/&amp;t=Security+tip+%233%3A+public+key+cryptography+%26+PGP" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/&amp;title=Security+tip+%233%3A+public+key+cryptography+%26+PGP" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/&amp;title=Security+tip+%233%3A+public+key+cryptography+%26+PGP" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/&amp;title=Security+tip+%233%3A+public+key+cryptography+%26+PGP" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Security+tip+%233%3A+public+key+cryptography+%26+PGP+-+http://b2l.me/byb8x&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.tylerburton.ca/2009/10/security-tip-3-public-key-cryptography-pgp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
