I am creating a PHP application which can be installed on user's server but the administration is hosted on my server.
I need to store the password, username, db_name, host and port of database of the user. I think I should store in database (MySQL), but I don't know how to do securely.
Can you tell me please how can I store external passwords securely?
Thank you!
You need to have one secure key setup on main server (where database settings are stored) for example the password is b@auty! and on the other machine decrypt function with the same key to decrypt password. Now you can secure any string simply by