<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>/ Andreas &#124; System administrator / &#187; Emacs</title>
	<atom:link href="http://blog.bogosity.se/tag/emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bogosity.se</link>
	<description></description>
	<lastBuildDate>Fri, 17 May 2013 14:35:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.bogosity.se' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>/ Andreas &#124; System administrator / &#187; Emacs</title>
		<link>http://blog.bogosity.se</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.bogosity.se/osd.xml" title="/ Andreas &#124; System administrator /" />
	<atom:link rel='hub' href='http://blog.bogosity.se/?pushpress=hub'/>
		<item>
		<title>Managing passwords using GnuPG, Git and Emacs</title>
		<link>http://blog.bogosity.se/2011/01/12/managing-passwords-using-gnupg-git-and-emacs/</link>
		<comments>http://blog.bogosity.se/2011/01/12/managing-passwords-using-gnupg-git-and-emacs/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 20:53:03 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GnuPG]]></category>
		<category><![CDATA[passwords]]></category>

		<guid isPermaLink="false">http://blog.bogosity.se/?p=575</guid>
		<description><![CDATA[Like any other security conscious and/or slightly paranoid computer geek I have lots and lots of unique and nontrivial passwords to keep track of.  My solution to this problem involves having one GnuPG encrypted text file per username/password pair. andreas@stilgar:~/safe$ gpg &#60; example.gpg You need a passphrase to unlock the secret key for user: "Andreas [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.bogosity.se&#038;blog=3175717&#038;post=575&#038;subd=andolsys&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Like any other security conscious and/or slightly paranoid computer geek I have lots and lots of unique and nontrivial passwords to keep track of.  My solution to this problem involves having one <a href="http://www.gnupg.org/">GnuPG</a> encrypted text file per username/password pair.</p>
<pre>andreas@stilgar:~/safe$ gpg &lt; example.gpg

You need a passphrase to unlock the secret key for
user: "Andreas Olsson &lt;andreas@arrakis.se&gt;"
4096-bit RSA key, ID 9A943D4A, created 2010-07-11 (main key ID 13CD4F59)
  <em>Here gnupg-agent calls pinentry-gtk2 to prompt me for the passphrase</em>
gpg: encrypted with 4096-bit RSA key, ID 9A943D4A, created 2010-07-11
      "Andreas Olsson &lt;andreas@arrakis.se&gt;"

https://127.0.0.1/

username: sigge
password: sigge

andreas@stilgar:~/safe$</pre>
<p>As I need to have access to those passwords on more than one computer I use Git, and a remote repository, to keep my encrypted files in sync. Other options might be to mount a SFTP folder using <a href="http://fuse.sourceforge.net/sshfs.html">SSHFS</a>, or to simply put the files in your <a href="http://db.tt/Dlzk3q2">Dropbox</a>. Yet, if you too decide to go with Git, here is a <em>.gitignore</em> you might want to use.</p>
<pre>
andreas@stilgar:~/safe$ cat .gitignore
*
!*.gpg
!.gitignore
andreas@stilgar:~/safe$
</pre>
<p>Thanks to Emacs and <a href="http://epg.sourceforge.jp/">EasyPG</a> it is a breeze to  create new GnuPG encrypted text files, as well as to modify existing ones. Just use the file extension <em>.gpg</em>, and EasyPG will do its thing. The first time, when you actually create the file, you will be prompted for which public keys you want to encrypt against.</p>
<pre>andreas@stilgar:~/safe$ emacs yet_another_example.gpg</pre>
<p>(EasyPG is included in Emacs 23, and don&#8217;t need to be installed separately.)</p>
<p>Do note that this method also works when there are multiple people involved. Just make sure that the intended users have access to the share/repository in question, and that their public keys are included when you create the GnuPG files.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/andolsys.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/andolsys.wordpress.com/575/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.bogosity.se&#038;blog=3175717&#038;post=575&#038;subd=andolsys&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.bogosity.se/2011/01/12/managing-passwords-using-gnupg-git-and-emacs/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/b8504423137e4de7ddd0aa67a628fe18?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andolsys</media:title>
		</media:content>
	</item>
	</channel>
</rss>