0
I have a PHP application which calls third party api with username and password embedded in the XML API call from my side.
I would like to encrypt and store the username and password embedded in the api call somewhere other than the code.
The application I have has username password authentication for users to login before using it.
What I was thinking is to encrypt the api username and password with some key which can later be decrypted with all the passwords users type in when logging in.
How can I make this possible so that the username and password can be decrypted using the different login passwords?