Hello all,
I have an app using Acegi, Hibernate and Struts. I want to make a login feature using jasypt. So, I configured in my Spring config file a StrongPasswordEncryptor that Acegi uses to validate the passwords. The problem is that I need to save the encrypted passwords in my DB via Hibernate. But Hibernate doesn´t have an one-way (digest) Encryptor. So when I save a password in the DB and try to match the digest through a StrongPasswordEncryptor, I get an error. That´s kinda obvious, cause I encrypt the password in a two-way encryption and try to use a digest to match the password the user wrote with the password saved in the DB.
So, my question is: Is there any way to configure my Spring XML file to force Hibernate using a digest so Acegi can validate the password with another digest?
Any answer is appreciated!
Thanks!