<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code Ghar (Posts about gpg)</title><link>https://codeghar.com/</link><description></description><atom:link href="https://codeghar.com/categories/gpg.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2019 &lt;a href="mailto:@aikchar"&gt;Hamza Sheikh&lt;/a&gt; License</copyright><lastBuildDate>Fri, 08 Feb 2019 07:18:51 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Get Started with GnuPG</title><link>https://codeghar.com/blog/get-started-with-gnupg.html</link><dc:creator>Hamza Sheikh</dc:creator><description>&lt;div class="section" id="get-started-with-gnupg"&gt;
&lt;h2&gt;Get Started with GnuPG&lt;/h2&gt;
&lt;div class="section" id="install"&gt;
&lt;h3&gt;Install&lt;/h3&gt;
&lt;p&gt;I'll assume you'll want to use GnuPG v2.&lt;/p&gt;
&lt;p&gt;If you're using Ubuntu install from the repos.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
user@host:~$ sudo aptitude install gpgv2
&lt;/pre&gt;
&lt;p&gt;You can also install from Nix package manager. It'll usually have newer versions available than the Ubuntu respos (especially if it's LTS).&lt;/p&gt;
&lt;pre class="literal-block"&gt;
user@host:~$ nix-env -i gnupg-2.1.1
&lt;/pre&gt;
&lt;p&gt;WARNING: This is a "living document" and will be updated as I learn from
my mistakes.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="generate-your-key-pair"&gt;
&lt;h3&gt;Generate Your Key Pair&lt;/h3&gt;
&lt;p&gt;You'll need a lot of entropy while generating a key pair. I don't know how much it helps but I run the following in a separate terminal window while I generate a key pair.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
user@host:~$ dd if=/dev/urandom of=/dev/null
&lt;/pre&gt;
&lt;p&gt;While the &lt;cite&gt;dd&lt;/cite&gt; process is running, run the following in a different terminal window to generate your key pair.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
user@host:~$ gpg2 --gen-key
&lt;/pre&gt;
&lt;p&gt;You'll be asked for your real name and email address. This constructs an identity for you. Make sure to use your actual information here.&lt;/p&gt;
&lt;p&gt;You will also be asked to provide a passphrase. Choose a secure passphrase and do not lose it. It's often recommended to keep a printed copy in a safe place, locked away from prying eyes.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://codeghar.com/blog/get-started-with-gnupg.html"&gt; Read more …&lt;/a&gt; (6 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description><category>gpg</category><guid>https://codeghar.com/blog/get-started-with-gnupg.html</guid><pubDate>Tue, 11 Aug 2015 18:41:39 GMT</pubDate></item></channel></rss>