info | twitter | github
J-_-L | Writings on Ruby Programming
19.01.12 24.05.12
5 comments

pws: The ruby-powered command-line password manager

  • 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!
  • 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:

$ pw for github
Creative Commons License

Comments

20.01.12

Nathan B

This looks really great! Now you've got me thinking about an open source competitor to LastPass...

24.01.12

Magesh

Wow! good work, i like this a lot :)

25.01.12

Jonathan

I was inspired by this to write a quick bash script that uses grep, vim and gpg to act as a password store on a flat file.

31.01.12

Rooby G

this a great guide.. I was try this at my home and it work..

thanks

03.05.12

Slantory

Even though I do know how to develop iphone (and not only) apps I wouldn't guess that it is possible to store the password safely in one file.