ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.91k stars 522 forks source link

Hi, is it possible to remove "encrypted.property" config, and auto detect "ENC " statement? #4

Closed iwaterman closed 9 years ago

iwaterman commented 9 years ago

if i want to encrypt the datasource password, now the two configuration below is needed:

spring.datasource.password=ENC(+Nrx10OneKdA9VvXGXkyaxWzNHt+sQ46) spring.datasource.password.property=

Stand on the common user side, i just feel a little strange, it is possible to use the format spring.datasource.password.property=+Nrx10OneKdA9VvXGXkyaxWzNHt+sQ46

or spring.datasource.password=ENC(+Nrx10OneKdA9VvXGXkyaxWzNHt+sQ46)

if they could be work, it's awesome :)

iwaterman commented 9 years ago

sorry, it's my mistake, only the configuration

spring.datasource.password=ENC(+Nrx10OneKdA9VvXGXkyaxWzNHt+sQ46)

is work. sorry again.

jasypt-spring-boot is great!

ulisesbocchio commented 9 years ago

Cool, great that it works for you buddy. Let me know if you have any other issues