ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.88k stars 516 forks source link

Algorithm “PBEWITHHMACSHA512ANDAES_256” not available,default Algorithm available #174

Closed angiely1115 closed 4 years ago

angiely1115 commented 4 years ago

org.jasypt.exceptions.EncryptionOperationNotPossibleException at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.encrypt(StandardPBEByteEncryptor.java:1001) at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.encrypt(StandardPBEStringEncryptor.java:655) at org.jasypt.encryption.pbe.PooledPBEStringEncryptor.encrypt(PooledPBEStringEncryptor.java:465) at com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor.encrypt(DefaultLazyEncryptor.java:109)

ulisesbocchio commented 4 years ago

Not sure how to respond to this issue since all you did was to paste an exception...am I supposed to figure it out? Why don’t you explain the issue you’re facing and how to reproduce it?

angiely1115 commented 4 years ago

my JVM configuration: -Djasypt.encryptor.algorithm=PBEWITHHMACSHA512ANDAES_256 -Djasypt.encryptor.iv-generator-classnam=org.jasypt.iv.RandomIvGenerator -Djasypt.encryptor.password=smart-framework -Djasypt.encryptor.provider-name=SunJCE

angiely1115 commented 4 years ago

This configuration is available: jasypt: encryptor: algorithm: PBEWITHHMACSHA512ANDAES_256 ivGeneratorClassname: org.jasypt.iv.RandomIvGenerator providerName: SunJCE