Saturday, August 21, 2010

Safely store your passwords

If you are like me, scared of storing passwords online and looking for a safe way to store (remember) your passwords in your own machine, openssl offers a way.

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.