Best practice to store passwords for external services?

https://news.ycombinator.com/item?id=2492793
by perssontm • 15 years ago
13 7 15 years ago

I'm building a web application that lets user enter their imap-account-information into it, and I need to save it for them for later use.

I've been looking at a few ways to encrypt it, but it also has to be easy to decrypt for me when accessing their imap-account. In the same time it should be made reasonably difficult to decrypt them if the database gets stolen for some reason.

Is there some best practices here? Any hints would be appreciated. Implementation is in php and mysql currently, but might be python as well(I'm still in the prototype phase).

Related Stories

Loading related stories...

Source preview

news.ycombinator.com