I am using Spring, Hibernate for developing my application. And as DB side, I have MySQL. I have an User table and that has password field of varchar type.
Now, when a new user is created, I just want store password field in an encrypted form. Is there any facility provided by Hibernate to do so? Or is there any other way?
You might want to take a look at this thread which provides good answers for the same question:
Password encryption with Spring/Hibernate - Jasypt or something else?
In short, using a one-way hashing algorithm with salt to encrypt the password is the de-facto way of doing this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With