I know there are dozens of topics about storing a passwords in DB, but all of them are missing one approach: what if I want to use this password to authenticate my app to an external service?
Today I'm making a mailbox module to my app and here's where I've bumped a wall. How to store a password to the user's mailbox, so the server of my app can read it from database, make a call to mail server and get messages?
If I'll store it as plain text - it's obvious suicide. If I'll encrypt it (hash) - it's unreversible so I can't properly sign in to mail server.
What to do?? Help please! :)
Thank you in advance and best regards, Tom