Rails Developer

Memorable Password

June 04 2011 at 11:33 am

I have been working on a gem for random but memorable password generation. It uses dictionary words and a list of proper names and mixes those up with numbers and/or special characters, depending on the options you pass in. It is inherently less secure than a full random password, but the idea is that if you give the user a password they can remember then hopefully they won't use "password" or their username or stick the password to the side of their monitor.

Usage is pretty simple.

MemorablePassword.generate
=> "chuck9paste"


You can specify upper case if you'd like, as well as special characters. You can put a fixed length or a min length, but those will of course reduce the number of possible permutations and combinations.

The best part is that it filters out profanity so I had to commit a text file containing all the most vulgar and insulting words I could come up with.

The whole API and source is available from GitHub. It is on rubygems.org, currently at version 0.0.3 but I am still working on it.

https://github.com/kimos/memorable_password