ulisesbocchio / jasypt-spring-boot

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

encount the garbled problem #280

Closed AoL-X closed 3 years ago

AoL-X commented 3 years ago

when i try to use the jasypt tool to decrypt the encrypted password , it comes that the head part of the decrpted password is garbled.i have justified the encryption algorithm, and the salt-password is confirmed ok, but it still doesn't work! i am very confused about the problem. Any help will be appreciated😭 Considering the commercial factor, the related files i will send by email.thanks. pls connect.

ulisesbocchio commented 3 years ago

Not sure what you mean. When you say "I try to use the Jasypt tool", does that mean just Jasypt (not Jasypt-spring-boot)? In any case, make sure that whatever you do, you use the same version of Jasypt that Jasypt-spring-boot uses to interoperate and that you set the same exact encryption/decryption configuration using the same spring encryptor. Depending on your case, jasypt-spring-boot may use different encryption config or a different (not supported by Jasypt) string encryptor altogether. If you can detail the steps and your configuration and I try spot the error.

AoL-X commented 3 years ago

Not sure what you mean. When you say "I try to use the Jasypt tool", does that mean just Jasypt (not Jasypt-spring-boot)? In any case, make sure that whatever you do, you use the same version of Jasypt that Jasypt-spring-boot uses to interoperate and that you set the same exact encryption/decryption configuration using the same spring encryptor. Depending on your case, jasypt-spring-boot may use different encryption config or a different (not supported by Jasypt) string encryptor altogether. If you can detail the steps and your configuration and I try spot the error.

I have fixed the problem. The reason for my case is exactly the encryption config differs with the default decryption config that you have mentioned above. Thanks a lot for your reply.