Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Command line script to keep usernames/passwords in gnupg encrypted text files.
branch: features/wifes…

This branch is even with grahamking:features/wifes-laptop

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

kip Keeps Internet Passwords.

Command line script to keep usernames and passwords in gnupg encrypted text files


Make sure you have a gnupg key pair: GnuPG HOWTO.

Latest release:

sudo pip install kip

Latest dev:

  1. Clone the repo: git clone
  2. Install: sudo python3 install


kip username

What it does:

  1. Generates a random password
  2. Writes username and password to text file ~/.kip/passwords/
  3. Encrypts and signs it by running gpg --encrypt --sign --armor
  4. Copies the new password to your clipboard

Add optional notes: kip username "My notes". You can also pipe in your password of choice: echo S3cret | kip username



What it does:

  1. Looks for ~/.kip/passwords/**, decrypts it by running gpg --decrypt
  2. Prints your username in bold, and any notes your stored.
  3. Copies your password to the clipboard

Remote access

kip can start an https server for you, so that you can access your passwords from anywhere: kip

This will:

- Generate a private key and a self-signed SSL certificate.
- Start a server at:

To use the server, you enter the name of the file you want decrypted in the name field, your GPG pass phrase in the key field, and press Go.

It will display your username and notes, and puts the password in a hidden field, which is already select. Press Ctrl-C (or whatever says 'copy' on your computer), and it's in your copy-paste buffer, just like regular command-line kip.

The 'Shutdown' checkbox allows you to stop the server remotely, in case your pass phrase may have been compromised.

Note: Only access kip from a trusted computer. The 'serve' features is designed to allow you access from a family / friends' machine, or a machine which you know is clean. If you access it from an untrusted machine, a keylogger could get your private key's pass phrase.

To change your pass phrase: gpg --edit-key passwd. This does not change the key itself, just your pass phrase. All your files will still decrypt like before.



  • gnupg: to encrypt password files
  • xclip (linux) or pbcopy (OSX): to copy password to clipboard
  • (and python, but you have that already)

On Ubuntu / Debian: sudo apt-get install gnupg xclip


If you want to use different commands to encrypt / decrypt your files, want longer passwords, etc, you can. Copy kip.conf from the repo to ~/.kip/kip.conf, and customise it. It's an INI file, using = or : as the delimiter. Make sure the home path does not end with a slash.


GnuPG is secure, open, multi-platform, and will probably be around forever. Can you say the same thing about the way you store your passwords currently?

I was using the excellent Keepass when I got concerned about it no longer being developed or supported. How would I get my passwords out? So I wrote this very simple wrapper for gnupg.

If you live in the command line, I think you will find kip makes your life a little bit better.

Manual override

There's no magic involved. Your accounts details are in text files, in your home directory. Each one is encrypted with your public key and signed with your private key. You can ditch kip at any time.

Browse your files: ls ~/.kip/passwords/

Display contents manually: gpg -d ~/.kip/passwords/facebook

Something went wrong with that request. Please try again.