File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Store Password Field in Encryption Form Using MySQL and Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Store Password Field in Encryption Form Using MySQL and Hibernate" Watch "Store Password Field in Encryption Form Using MySQL and Hibernate" New topic
Author

Store Password Field in Encryption Form Using MySQL and Hibernate

Nirmal Jatania
Greenhorn

Joined: Apr 17, 2009
Posts: 19
Hello All..

I am using Spring, Hibernate for developing my application..

And as DB side, I have mysql..

Now, My requirement is like, I have User table and that has password field with varchar type.

Now, When new user is created, i just wanna store password field in the Encrypted form...

Is there any facility provided by Hibernate to do so ? Or is there any other way to do so..

Thanks in advance..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41128
    
  45
The usual way to store passwords would be to hash them (using an algorithm like SHA-256), not to store them in encrypted form. That way no one can retrieve them.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Store Password Field in Encryption Form Using MySQL and Hibernate
 
Similar Threads
spring security form based login using database not responding
Problem while retrieving values from table
Capture Enter Key
Password Encryption and Decryption
Problem while retrieving values from table