File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat datasourceRealm with md5 passwords Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat datasourceRealm with md5 passwords" Watch "Tomcat datasourceRealm with md5 passwords" New topic
Author

Tomcat datasourceRealm with md5 passwords

Jeroen Nouws
Greenhorn

Joined: Jul 14, 2011
Posts: 17
Hey everyone,

I have a webapp with a datasource realm for loging in,
problem is that the passwords are stored as clear text at this time and i want to have them as md5 or sha.
how do i configure my context.xml file then for this digested passwords?



thank you for checking this
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Search for "digest" in http://tomcat.apache.org/tomcat-7.0-doc/config/realm.html

http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#Digested_Passwords is also relevant.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat datasourceRealm with md5 passwords
 
Similar Threads
MD5 and Jetty webserver security?
can't login with correct username and password
security constraint
Help in database connections
Encrypting Password in Database