I have the task of obfuscating passwords in our configuration files. While I don\'t think this is the right approach, managers disagree...
So the project I am workin
Use spring cloud config server
Define encrypt.key=MySecretKey
Post message to encrypt https://config-server/encrypt
Define password now like
app.password={cipher}encryptedvalue
Use @Value("${app.password}") in code
@Value("${app.password}")
and spring boot should give you decrypted value