title: How to securely store passwords used to log in on third party websites
body: <p>First of all, I am not lookig for a way to store the passwords of my own site to allow users to log in (which I could easily do using salted hashes of the password).</p>
  
  <p>I am building a personal web page where I would like to be able to check my PayPal balance on the home page. To do that, I need to store my PayPal credentials in a MySQL database, so I can retrieve it later from PHP to log-in in PayPal and scrape my balance. I know I could just leave my credentials on the PHP script, but I want to allow some more users to use this website (each user logs in on his own account registered on my website).</p>
  
  <p>So, what I need is a secure way to store the PayPal passwords on my server and not being saved in plain text. I do not know much about encryption, so I would like to ask which is the best way to make this.</p>
  
  <p>I am not sure if this question should go on programmers site or it is right here; sorry if I did wrong.</p>
  
  <p>Thanks.</p>