title: How do I encrypt the passwords in my database if I need to decrypt the password into plaintext?
body: <p>I'm creating a system which stores a list of username and passwords in the database and uses them to login to some sites and do some tasks.
  I want to store the passwords in a secure way in the database. With my limited understanding of hashing, I know its not something I can use since I need to get the plain text back later. Also I heard storing encrypted passwords in database is a bad practice. So what approach can I take ? </p>