Closed bjornharvold closed 4 years ago
See https://github.com/ulisesbocchio/jasypt-spring-boot/blob/master/README.md#update-11242019-version-300-release-includes, you need
jasypt:
encryptor:
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
to use your existing code
are you passing the password to the mvn command?
Hi @ulisesbocchio . Yes, passing the password as shown above. Hi @lz1asl . Thank you. That did the trick.
This works:
mvn jasypt:decrypt -Djasypt.encryptor.password="MXyXswPQkxRanB3VXNMgYY2JJRYngE?aun(bHkVJK6PN4aYjT}/^ueLtex(R78W4" -Dspring.profiles.active=local -Djasypt.encryptor.algorithm=PBEWithMD5AndTripleDES -Djasypt.encryptor.iv-generator-classname=org.jasypt.iv.NoIvGenerator
My application-local.properties file is located under ./src/main/resources. Encryptor password is correct. The application starts fine and I can confirm the encrypted password is decrypted into its correct string.
I have not been able to get this utility to work.