Closed JackNo2018 closed 4 years ago
maybe related to default encryption changes, see the change-log: https://github.com/ulisesbocchio/jasypt-spring-boot#update-11242019-version-300-release-includes
Changed default encryption to PBEWITHHMACSHA512ANDAES_256 (Thanks @rupert-madden-abbott)
To keep your encrypted properties with previous default config use:
jasypt:
encryptor:
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
from your log
2020-05-28 16:31:56 [main] INFO c.u.j.encryptor.DefaultLazyEncryptor - Encryptor config not found for property jasypt.encryptor.salt-generator-classname, using default value: org.jasypt.salt.RandomSaltGenerator
2020-05-28 16:31:56 [main] INFO c.u.j.encryptor.DefaultLazyEncryptor - Encryptor config not found for property jasypt.encryptor.iv-generator-classname, using default value: org.jasypt.iv.RandomIvGenerator
@BenEfrati Thanks, your answer solved my problem.
i have the same configs and error is : Failed to bind properties under 'spring.datasource.password' to java.lang.String
@jamesmedice The default encryption has changed,you can try this https://github.com/ulisesbocchio/jasypt-spring-boot#maven-plugin
Hey,
When I use jasypt-spring-boot-starter 3.0.2 in a project using springboot 2.2.2.RELEASE, the program fails to read the contents of the configuration encrypted by jasypt, resulting in a boot failure.
config
log
With jasypt-spring-boot-starter 2.1.2 there no issue
Kind regards