spring boot - 1.5.15
jasypt-spring-boot-starter - 2.0.0
jasypt cli -1.9.2
CLI and application running on centos
Using cli to encrypt passwords
./encrypt.sh input="somedbpassword" password="jasyptpwd" algorithm="PBEWITHHMACSHA512ANDAES_256"
encypted value - nokz6eonaoeYEMWL30jXT8zBMRS1gcrWsGlt3tUVAHU=
Caused by: com.ulisesbocchio.jasyptspringboot.exception.DecryptionException: Decryption of Properties failed, make sure encryption/decryption passwords match
at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.resolvePropertyValue(DefaultPropertyResolver.java:37)
at com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver.resolvePropertyValue(DefaultLazyPropertyResolver.java:41)
at com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource.getProperty(EncryptablePropertySource.java:16)
at com.ulisesbocchio.jasyptspringboot.wrapper.EncryptableMapPropertySourceWrapper.getProperty(EncryptableMapPropertySourceWrapper.java:29)
at org.springframework.boot.bind.PropertySourcesPropertyValues.getEnumerableProperty(PropertySourcesPropertyValues.java:166)
at org.springframework.boot.bind.PropertySourcesPropertyValues.processEnumerablePropertySource(PropertySourcesPropertyValues.java:149)
at org.springframework.boot.bind.PropertySourcesPropertyValues.processPropertySource(PropertySourcesPropertyValues.java:128)
at org.springframework.boot.bind.PropertySourcesPropertyValues.<init>(PropertySourcesPropertyValues.java:118)
at org.springframework.boot.bind.PropertiesConfigurationFactory.getPropertySourcesPropertyValues(PropertiesConfigurationFactory.java:331)
at org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:285)
at org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:250)
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:331)
... 133 more
Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException
at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1051)
at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
at org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:498)
at com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor.decrypt(DefaultLazyEncryptor.java:82)
at com.ulisesbocchio.jasyptspringboot.resolver.DefaultPropertyResolver.resolvePropertyValue(DefaultPropertyResolver.java:35)
Default algorithm is working but application does not decrypt with PBEWITHHMACSHA512ANDAES_256 algorithm.
spring boot - 1.5.15 jasypt-spring-boot-starter - 2.0.0 jasypt cli -1.9.2 CLI and application running on centos
Using cli to encrypt passwords
./encrypt.sh input="somedbpassword" password="jasyptpwd" algorithm="PBEWITHHMACSHA512ANDAES_256"
encypted value - nokz6eonaoeYEMWL30jXT8zBMRS1gcrWsGlt3tUVAHU=pom.xml
application.properties
Default algorithm is working but application does not decrypt with PBEWITHHMACSHA512ANDAES_256 algorithm.
I have tried with and without https://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip jars. Does jasypt 1.9.2 support PBEWITHHMACSHA512ANDAES_256 algorithm? Do I need to enable/install to make it work?