Answer the question
In order to leave comments, you need to log in
Storing unhashed passwords in a database
It was required to store passwords of users in a database.
The password is needed for authentication on a third-party service, so hashing is not suitable.
Tell me how to do it better?
Answer the question
In order to leave comments, you need to log in
1) Store session_tokens, unless of course the third-party service works through OAuth.
2) If not, encrypt with the key. Keep the key deep inside. So if the database is taken away, they will not decrypt it without the key.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question