How many passwords do you have to remember? Or how many client passwords do you have to keep hidden away from prying eyes? If you have too many passwords to remember, I always find it best to store those passwords in some form of encrypted tool. Because of the amount of passwords I have to retain I always make sure I have a tool installed on every personal and/work machine I use. One of those tools is KeePassX.
KeePassX is a Linux only (for now) tool that doesn't just store passwords safely, it stores passwords, usernames, urls, attachments, and comments - all in one convenient, safe location. You can sort your entries in groups and even search KeePassX. In this article I will show you how to install and use KeePassX.
Installing KeePassX is simple. You can follow one of these methods:
Or, to install via command line:
That's it. The application is now installed. Now you are ready to use.
The first thing you have to do is open up the tool. You will find it in Applications > Accessories. When the tool opens you will find a very simple main window (see Figure 1).
In order to create a store for sensitive information you must first create a new database. To do this either click the New button (far left on the toolbar) or click File > New Database. When you do this you will be asked to set the master key for the database. You can either set a password or use a key file. If you opt for a key file you can either a GPG key file you already have, or you can use KeePassX to generate one for you.
If you want to use a gpg key file (and not a randomly generated one, you can use gpg like so, to extract a key:
gpg --export -a "USERNAME" > KEY_FILE
Where USERNAME is the name of the gpg user and KEY_FILE is the name of the file you want to generate.
Once you have your database created you can then begin to add groups and entries to it. This is quite simple. If this particular database is going to contain client information you might want to create a new group for clients. If you intend to only use one database to house all of your information you could always create two groups:
I would take this even further and add sub-groups to the Clients group, one sub-group for each client.
After you have your groups worked out you can then add entries to them. To add an entry all you need to do is click the Key icon or click Entries > Add New Entry. When the new window pops up you just need to enter the necessary information for the entry.
In the password section you can add a password (and even have it masked) or you can even have KeePassX generate a random password for you. To view the password just click the "eye" icon. The passwords generated by KeePassX are really strong (and impossible to memorize).
If you are using your own passwords, KeePassX will indicate to you how strong they are. For example, one password I use for a particular login was only 88 Bit. Maybe it's time for me to change that password? You can also set KeePassX to expire particular passwords...reminding you to change them so you are a safer users.
Once you have completed your entry, click the OK button and the entry will be stored. Complete the entire database and click File > Save Database and, if this is the first time you've saved this database, KeePassX will ask you to name the database file.
KeePassX has a lot of features you won't find in other tools of a similar function. Install this on all the machines you use, share the database file between them, and enjoy not having to strain your memory to remember all that trusted information.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.