Forget about keeping your passwords on a hard drive — it's not secure! Generate them from one master-password and three different salts.
Get code on GitHubThere are packages for Ubuntu/Debian and Archlinux
[*].
See details in the Installation section of wiki.
You can use the CLI version on you PC and the web-version in your browser.
If you can't access neither program, nor the Internet, you can still reproduce actions taken by the script manually.
With this tool you will have one strong password per account. Passwords will not store on your hard drive, so no one can access them.
$ rndy -u username -d example.com -o Type master-password: …typing…password… MTY1NDRkMTY1NDRkRkMT
$ rndy -u username -d example.com -p Jfsi43 -c 8 -o MTY1NDRk