Archive for Lifehack

Password Management with KeePassX

Working with as many systems as I do, I have to keep track of a pretty huge number of user accounts and passwords across many diverse environments. For a long time I used a GPG encrypted text file to store this information, but recently I went looking for a more structured solution. I found KeePassX, and promptly fell in love.

KeePassX is a password management application for Linux and OSX. It supports the same database format as KeePass Password Safe for Windows, providing a cross-platform solution for managing passwords securely. It’s database is protected using either AES or Twofish encryption with a 256 bit key, which provides adequate encryption for the majority of users.

The interface is extremely simple. Select ‘File -> New Database’, and then enter a password or passphrase. KeePassX has the option to also use a key file for authentication - allowing you to place a key on a USB stick to add a physical authentication token to your password for added security.


keepass create database dialogue

Click for larger image

Once your database is created, choose a name and location for it with File -> Save Database As. KeePassX sorts your passwords into groups that you define for easier organisation. To create a group, right-click in the group panel of the dialogue and select ‘Add New Group’ or select the ‘Add New Group’ option from the ‘Edit’ menu. Name your group, and then select it in the group pane and click either the small + symbol on the toolbar or ‘Edit -> Add New Entry’.

The ability to attach a file to an entry I find extremely useful to attach keys, seed files, or other tokens that are linked to this account. I also find the feature to generate passwords directly in the Entry dialogue extremely valuable, saving me from making transcription errors when I store or change a password.


the keepassx create new entry dialogue

Click for larger image

While KeePassX doesn’t natively support any kind of synchronisation, a service like dropbox would easily allow you to keep your password databases in sync between your Windows, Linux, and OSX machines. I use Subversion to make sure that my passwords are up-to-date on every machine I use them on. I also maintain separate databases with separate passphrases for home and work use, allowing me to only check-out the database I need on that particular host.

A feature I find surprisingly useful is that KeePassX will copy usernames/passwords to clipboard without the text being viewable. In an office environment where I often have a vendor or another consultant sitting by me assisting, being able to get at infrequently used passwords I haven’t memorised without showing them to all and sundry is a relief. KeePassX will clear the clipboard of secure information within a configurable time period, to minimise the risk of accidental pastes of root passwords into work IRC. Yes, $colleague, I’m looking at -you- =)


keepassx interface with groups added

Click for larger image

For those using locked-down or shared Microsoft Windows workstations, KeePass Password Safe is available as a portable app from PortableApps.com.

EDIT: As people have pointed out in the comments, there are also mobile versions of KeePass - in fact I have the J2ME version on my Nokia S60 cell phone. Unfortunately my insanely long passphrase is almost impossible to type in even with qwerty on a phone so while it’s a great idea to have access to the database on my phone I find myself unable to really use it =)

Comments (13)

Like No-one’s Watching

Pencil Macro

I enjoy reading Stepcase Lifehack, although I tend to skim it lightly. Many of the posts can seem a little trite and obvious at times.

Some are so obvious I wonder how, when I feel them shock me like electricity and trigger my mind’s resonant frequency, I never thought to apply this concept to my life before. Others on the surface can seem fairly ordinary, but have me thinking along tangents to the original premise for days.

8 Good Reasons to be a Lousy Musician

A lifehack I’ve always felt the strength of but had forgotten a little recently is developing creative space. As children many of us had the ability to get so lost in our art that we would reach an almost zen state. I found it all too easy to pick up a pen or pencil and be so absorbed in my task that I’d come to myself with a shock hours later realizing it was too dark to see my page and that I’d had no sense of the time passing at all.

I never lost the ability to reach that state of concentration, but as an adult a trap I often fall into is to focus on the performance rather than the art. There’s a certain pleasure to be taken in being good at something, but there are times it’s more enriching to seek the creative space rather than a polished end result. The art itself is just the means to reaching this place. When I focus too hard on the quality of the execution, this transforms the creative pursuit into just another activity to make time for. When I let go of caring whether it’s good and instead focus on whether it’s affirming, I take an almost spiritual calm and centeredness away with me when I come back to the mundane world.

As a writer and photographer, it’s a given that I make room for creative space in my life. Even if I hadn’t found avenues of employment for some of my more artistic passions, I’d still consider it a priority to set aside time to pursue them. Music, drawing, and writing give me ways to stop the world for a few hours every now and then and find some kind of serenity.

If serenity sounds appealing, I can wholeheartedly recommend giving creative space a chance. It’s easy to be so busy that you forget to make time to centre yourself. Some of us have almost forgotten how to.For those who have, reaching that state might take a lot more than just sitting down with a sketchbook. Even if you don’t find yourself reaching a zen-like calm every time you pick up your paintbrush, the abiding joy taken in creation is almost a defining characteristic of humanity and I at least can’t imagine ever feeling my life has too much of it.

Comments (1)