Digest::PasswordComposer is a perl module that generates unique passwords for web sites. The generated passwords are created using a Master Password.
The original Greease Monkey script is still available here http://userscripts.org/scripts/show/1341.
There's also a Google Chrome extension available.
With the same Master Password the generated password will be the same.