Results 1 to 2 of 2
Thread: Masking password for logging
- 09-29-2009, 06:07 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 7
- Rep Power
- 0
Masking password for logging
Dear all,
I have a question on masking password for logging
When putting this message (in string format) to log,
<ConfigDetails><ConfigGroup name="configgp1"><LastUpdateTimestamp>Tue Sep 29 11:57:17 HKT 2009</LastUpdateTimestamp><Config key="USERNAME" value="testing"/><Config key="PASSWORD" value="abcd1234"/></ConfigGroup></ConfigDetails>
it is required to change to:
<ConfigDetails><ConfigGroup name="configgp1"><LastUpdateTimestamp>Tue Sep 29 11:57:17 HKT 2009</LastUpdateTimestamp><Config key="USERNAME" value="testing"/><Config key="PASSWORD" value="********"/></ConfigGroup></ConfigDetails>
How can I extract the config key "PASSWORD" and change its value to all *?
Thanks:):):):):):)
- 09-29-2009, 08:04 AM #2
Review the String class API... like String.subString(...) and String.indexOf(...)
My Hobby Project: LegacyClone
Similar Threads
-
how to check password for 3 times enterd wrong password
By sk.mahaboobbhasha@gmail.c in forum New To JavaReplies: 2Last Post: 11-14-2008, 07:53 PM -
how to check password for 3 times enterd wrong password
By sk.mahaboobbhasha@gmail.c in forum Java ServletReplies: 0Last Post: 11-14-2008, 01:22 PM -
How to check password of a jsp/html with the password of Database(mysql) #1
By sk.mahaboobbhasha@gmail.c in forum Java ServletReplies: 2Last Post: 11-14-2008, 01:11 PM -
what is logging
By Thirumalt in forum Java SoftwareReplies: 1Last Post: 11-26-2007, 11:37 AM -
Logging
By ravian in forum New To JavaReplies: 3Last Post: 11-18-2007, 10:22 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks