aspose file tools
The moose likes Object Relational Mapping and the fly likes To Encrypt Password before storing using hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "To Encrypt Password before storing using hibernate" Watch "To Encrypt Password before storing using hibernate" New topic
Author

To Encrypt Password before storing using hibernate

S.R.K.Vivek Raju
Ranch Hand

Joined: Sep 23, 2004
Posts: 58
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.

Thanks

With Regards
S.R.K.Vivek Raju.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To Encrypt Password before storing using hibernate
 
Similar Threads
how to encode the password in database ?
designing login page
How to store passwords securly
How do I print extended ascii characters in Java ?
how to use db2 function in the HQL