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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat datasourceRealm with md5 passwords