Database Password Encryption In Spring Boot Application Using JASYPT

Viewed 13

I want to encrypt the password of db in application.properties for a spring boot application. For that I see Jasypt algorithm but there as well we have to use a key to get the encrypted password and we have to use the same key while running a jar.

But Others can easily find the key as I am passing the key through the java jar command and they can easily decrypt the password.

Any other ways to pass the key so that others won't find?

0 Answers
Related