I have a spring boot application that stores certain passwords which are used by another application(App2) to get connections to databases.
I want to encrypt these passwords such that they can be decoded in App2 if a key is available. What's the best way to go about it?
BCrypt does not serve my purpose as I also need to decode the data
Use a TextEncryptor as you are already using Spring. The password and salt that you use when you create one represent your secret:
Encryptors.text("password", "salt");
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments