We have a J2EE application that interacts with several external systems. Each external system wants our application to be authenticated by username / password. Therefore, when we talk with an external system, we need to send a username / password. The problem is saving these passwords. We want to keep these passwords safe. Obviously, we cannot use MD5 to hash the password, because we need to send the password to an external system. Therefore, we need to encrypt the password.
- Where to store the encrypted password. Database?
- Where to store the encryption key?
What is the best practice for this particular problem?
source
share