1) Create a text file (eg name: passwords) with your passwords:
For eg.
google.com abcdef
blogger 123pqr
....
2) Encrypt using openssl
# encrypt
openssl aes-256-cbc -a -salt -in passwords -out passwords.enc
When prompted enter a master password
REMEMBER the master password at all times.
3) REMEMBER to remove the passwords text file !
rm -f passwords
3) Decrypt when needed
# decrypt
openssl aes-256-cbc -d -a -in passwords.enc -out passwords
That's it! Securely store your passwords and never worry about forgetting passwords again.