• Post Reply Bookmark Topic Watch Topic
  • New Topic

To Encrypt Password before storing using hibernate

S.R.K.Vivek Raju
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have to encrypt password before storing into the database and i am using hibernate as the middle tier.

In pure JDBC we use the "encode" keyword as follows,
String insert_query="INSERT INTO table values(?,?,encode(?,'vivek'));

But using hibernate we do the session.save to insert the values nto the database, So is there any way by which we could encode or encrypt passwords before storing into the database.

Any help will be very much appreciated.


With Regards
S.R.K.Vivek Raju.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!