I need to save a third-party application password in my PHP application for connect to a API in a background process. I need store the password in a DB, and the password is for each user of the application. But I don´t know what is the correct way to save it for retrieve it after.
I don´t want to save the password without encryption, but I don´t know which is the best method (and easy) to do this
Any idea?