stores your passwords in a file on your disk

encrypts the file with a master password

is designed for every-day-use

is written in 234 lines of understandable Ruby code… Read it!

lines of understandable Ruby code… Read it! is tested with 222 Cucumber steps

This announcement is actually a follow-up of my previous tutorial on how to build a password safe in ruby. Unfortunately, I was not using it and did not update it for quite a while, sorry for that.. But I finally managed to refactor it, so now it comes with specs, colors, new features and thousands of other tweaks and improvements :D

Impression / Usage

Install

Using a Ruby 1.9, do

$ gem install pws

Github: github.com/janlelis/pws

Usage tips

I’ve got the following lines in my ~./bashrc

export PWS="$HOME/.safe/pws" alias pw='pws'

The first line changes the password file location. In that ~/.safe folder, I actually use git to backup some of my pws files.

The second line allows a handy syntax for getting a password: