KeePassX is a cross platform password manager. However, KeePassX is a desktop
GUI application. That's where python-keepassx
comes in. By using
python-keepassx
, you can access your passwords using a command line
interface to KeePassX. You can also use the python library directly in your
own python applications.
Python-keepassx: simple, command line interface to your passwords.
$ kp get github
Password:
title: GitHub
username: jamesls
url: https://github.com/jamesls/
notes:
Password has been copied to clipboard.
See the Getting Started Guide to start using python-keepassx
now.
Keepassx is a great password manager. However, if you're like me, you're in the terminal frequently. It would be better if you could access your passwords in the terminal, or even better, in the python code you write. python-keepassx can read and write the database files that keepassx uses, and in doing so allows you to access your passwords.
We use things that require passwords. From social media such as Facebook, Twitter, and Instagram to things like online banking and tax returns nearly everything we access requires a username and password. It's not uncommon these days to have to deal with over 100 passwords.
If you're following password best practices, you should not be using the same password for more than one site. This makes sense, if you use the same password for your Facebook account and your online banking account, if someone gets your Facebook password, they can now access your online banking account. Also, you shouldn't be using passwords that are easy to guess: no dictionary words, birthdays, family and pet names, addresses, or any personal information. How do we deal with the fact that we need to create and remember 100s of these passwords?
That's where a password manager comes into play. A password manager is an application that you use to enter all of your passwords and usernames. This database of passwords is then secured with some form of a master password and optional key file.
Now whenver you need to log in to a site, you use the password manager, and enter your master password to gain access to the site specific password.
The benefit of this approach is that you can still use a unique (and even randomly generated) password for each password, but at the same time only have to remember a single master password.
KeePassX is a password manager. Check out it's homepage. It is based off of the KeePass application, which is only available on windows.
Some of the biggest benefits for using keepassx including:
The last two options are a really big deal. I use keepassx on windows linux, mac, iPhone, and Ipad. The fact that it's open source makes it easy to port to any platform. It also makes it easy to audit the code and see exactly how it's storing your passwords. The fact that it's open source means you never have to worry about a vendor going away and you being completely out of luck.
Yes. This project is different because it has:
Check out the Getting Started Guide for an introduction to using python-keepassx.
Check out the reference docs here: Reference Guide.
--stdin
option to read the master password from stdin.