<?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>ball of lightning [dot] com &#187; keepass</title>
	<atom:link href="http://balloflightning.com/tag/keepass/feed/" rel="self" type="application/rss+xml" />
	<link>http://balloflightning.com</link>
	<description>Hitting more home runs than Julio Lugo since 2002...</description>
	<lastBuildDate>Mon, 23 Aug 2010 21:53:51 +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>Automatically sync KeePass passwords between a PC and Mac (or even Linux)</title>
		<link>http://balloflightning.com/2010/01/automatically-sync-keepass-passwords-between-a-pc-and-mac-or-even-linux/</link>
		<comments>http://balloflightning.com/2010/01/automatically-sync-keepass-passwords-between-a-pc-and-mac-or-even-linux/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 22:42:36 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[keepass]]></category>
		<category><![CDATA[keepassx]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://balloflightning.com/?p=62</guid>
		<description><![CDATA[For the last few months I&#8217;ve been investigating some of the eminent password storage software out there. And encryption is really nice, but honestly, one of the most glaringly obvious uses would be so that I wouldn&#8217;t have to use the same passwords over and over again for websites that don&#8217;t store &#8220;critical data&#8221; (banking, [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few months I&#8217;ve been investigating some of the eminent password storage software out there.  And encryption is really nice, but honestly, one of the most glaringly obvious uses would be so that I wouldn&#8217;t have to use the same passwords over and over again for websites that don&#8217;t store &#8220;critical data&#8221; (banking, identification, etc.) but require accounts to be set up for online use.</p>
<p>While I was enamored with 1Password (and still am) the biggest hurdle to it&#8217;s adoption is that I own a PC and a Mac (<a href="http://balloflightning.com/2009/02/dual-partition-a-usb-drive-for-time-machine-and-windows/">remember</a>?).  Syncing the password database between computers is therefore a necessity, and syncing across operating systems (XP/7 to OS X and vice versa) even moreso.  This was certainly doable with KeePass and KeePassX, although KeePassX didn&#8217;t support a global auto-type hotkey.  A password storage system is rendered virtually useless if every single time I have to log into a different web page I have to bring up the KeePassX window; copy my information to the clipboard, bring the focus back to FireFox, and type it in.  Well, good news!  An <a href="http://www.keepassx.org/forum/viewtopic.php?f=5&#038;t=1920">updated (albeit currently unsupported) version of KeePass (based on v0.4.1)</a> adds auto-type functionality!</p>
<p>So now that we have auto-type everywhere, how to sync so we can use our KeePass databases everywhere we go?  Well it&#8217;s very easy.</p>
<p>1.) If you aren&#8217;t using Dropbox yet, start.  Go to Dropbox, set up and account, download the software, and set it up so both (or however many you have) machines are synced.  Create a folder somewhere in your Dropbox scheme (by default under Documents -> My Dropbox) called &#8220;KeePass.&#8221;<br />
2.) Download and install KeePassX (Mac) <a href="http://www.keepassx.org/forum/viewtopic.php?f=5&#038;t=1920">here</a>.  Download and install KeePass <strong>Classic </strong>(Windows) <a href="http://keepass.info/download.html">here</a>.  <em>Note: We need to download the &#8220;classic&#8221; version because KeePassX still uses the old .kdb format instead of the new .kdbx.  While we can set triggers in the new Windows version to automatically pop out a .kdb version AND a .kdbx every time we edit a password on that computer, we can&#8217;t edit .kdb&#8217;s on the Mac and automatically import them into KeePass on the Windows box.  And that makes syncing unfun.</em><br />
3.) On the Windows box (you can do it the other direction, too, but I found the Windows KeePass interface to be a bit more intuitive) open KeePass and create a new database.  Set a &#8220;master password&#8221; and repeat.  Don&#8217;t let this password suck too much; after all, you&#8217;ll be MINIMIZING the number of passwords you have to remember&#8211; at the very least you can do a good job coming up with a solid password that gives access to&#8211; well&#8211; everything else.  Use a key file, too, if you&#8217;d like, but I find it unnecessary; it&#8217;s always something you can add later.<br />
4.) Click &#8220;save as&#8221; and save the .kdb file to the directory you previously created within your dropbox scheme.  Temporarily close KeePass on Windows and open KeePassX on the Mac.  Browse to the newly created (and synced) database file and click open.  Enter password.  Try creating a few keys.  Save.  Close.<br />
5.) Re-open the Windows version.  Now you should only be prompted for the password (no browsing needed) and you should see your KeePass passwords in Windows.  Congrats; you&#8217;ve done the heavy lifting!</p>
<p>A few notes; this will work between a PC/Linux or Linux/Mac as well.  The same general steps apply although you will need the KeePass <a href="http://www.keepassx.org/downloads">repo for your Linux flavor or you can compile from source</a>.  If you are a Linux user, I figure you probably don&#8217;t really need directions on how to do that.  Second, KeePass (and therefore KeePassX) don&#8217;t automatically update the database while the program is running.  Therefore, when you are adding keys be careful not to add different keys on different computers while both are still open.  Dropbox handles conflicts well but you will lose some keys depending on what was open and what was being edited at the time.  As a rule of thumb, when I first started migrating to KeePass I never had it running on more than one computer at a time.  Once you have a stable database, it&#8217;s fine to have multiple instances going at once (it will typically ask to open in &#8220;read-only&#8221; anyways).</p>
<p>You can turn auto-type on and off by doing the following:<br />
Windows:  Tools -> Options -> Advanced tab -> Auto-Type button (lower right).<br />
Mac:  KeePassX -> Preferences -> Advanced</p>
<p>Some final notes to get auto-type running flawlessly on your computer.  As a general practice, I had two lines to the comments of every key.</p>
<p>Auto-Type-Window: *balloflightning.com*</p>
<p>This aids KeePass/X in finding the window you want to auto-type in.  I&#8217;ve found great success with the Firefox add-on &#8220;<a href="https://addons.mozilla.org/en-US/firefox/addon/9231">Hostname</a>&#8221; which puts the domain name of the current web-site in the title bar.  It may add a bit of clutter to your windows, but it provides you a surefire way to make sure KeePass/X is only auto-typing in the proper Firefox window/tab.  The &#8216;*&#8217; are wildcards, signifying KeePass/X will find whatever window has XXXXX balloflightning.com XXXXX in it.  Obviously, you change the hostname between the &#8216;*&#8217; to whatever key you are storing (i.e., paypal.com, ebay.com, etc.)</p>
<p>Auto-Type: {USERNAME}{TAB}{PASSWORD}{ENTER}</p>
<p>This is the custom sequence for the target window.  {USERNAME} and {PASSWORD} are the stored username and password, {TAB} is&#8230; well&#8230; tab and {ENTER} is also self-explanatory.  In some cases you may be forced to modify this (for example, I have to add a {TAB} after {USERNAME} every once in a while because the websites have a &#8220;click here to remember me&#8221; form.</p>
<p><img src="/images/keepasssync1.png" alt="Example Keepass custom sequence and target window" /></p>
<p>Some people will find that in OS X, tabbing will result in certain portions of forms (checkboxes, radio buttons, dropdowns, etc.) being skipped.  This creates a bit of a problem here because the sequences will then not match between Windows and Mac.  Solution?</p>
<p>1.) Open System Preferences<br />
2.) Go to Keyboard &#038; Mouse<br />
3.) Select &#8220;All controls&#8221; for full keyboard access</p>
<p><img src="/images/keepasssync2.png" alt="Setting tabs in Firefox to include all forms" /></p>
<p>For a Firefox-only solution, you can also add / change the accessibility.tabfocus Firefox option via about:config to one of the following:  <strong>3</strong> to be able to tab to form controls or <strong>7</strong> to be able to tab to everything</p>
]]></content:encoded>
			<wfw:commentRss>http://balloflightning.com/2010/01/automatically-sync-keepass-passwords-between-a-pc-and-mac-or-even-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
