This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes how can i hide the password field in context.Xml file 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 » Products » Tomcat
Bookmark "how can i hide the password field in context.Xml file" Watch "how can i hide the password field in context.Xml file" New topic
Author

how can i hide the password field in context.Xml file

sandeep tava
Greenhorn

Joined: Apr 02, 2008
Posts: 9
My requirement is :

i have to provide encryption for the password field in context.xml file i.e.
when i enter the password,it must be seen in some other format like dots,stars or some other unusual format..
Is it Possible?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41151
    
  45
The file (and its contents) is unencrypted, so it will always show the actual password. But it's not meant for production uses anyway; for that, use a JDBCRealm or DataSourceRealm. Then the password can be digested in the DB (which is a secure way of storing it).


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: how can i hide the password field in context.Xml file
 
Similar Threads
Password encryption in tomcat 5.
how can i use jndi to connect to rhe database
how to Change * to # in password field
HTML Number encoding - User Input
Problem with connection pooling