Register / Login
Win a copy of
Java 9 Revealed
this week in the
Features new in Java 9
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Object Relational Mapping
To Encrypt Password before storing using hibernate
posted 12 years ago
I have to encrypt password before storing into the database and i am using hibernate as the middle tier.
we use the "encode" keyword as follows,
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.
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
How to store passwords securly
how to use db2 function in the HQL
how to encode the password in database ?
How do I print extended ascii characters in Java ?
designing login page