Sun has an article on how to do password masking in java. The command line version uses a second thread to mask the characters being entered.
http://java.sun.com/developer/technicalArticles/Security/pwordmask/ Michael -----Original Message----- From: Dale Anson [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 2:57 PM To: Ant Users List Subject: RE: Improving Tasks Probably not widely known is that Ant-Contrib has a GUI input task, see http://cvs.sourceforge.net/viewcvs.py/ant-contrib/ant-contrib/src/net/sf /antcontrib/input/ GUIInputHandler. It does not do password masking, however. This particular input handler is copy and paste from the gui input handler used by Antelope. Also, look at http://ant.apache.org/resources.html, in the Articles section, Ivan Ivanoe has written an excellent article titled "Extending Ant Input Abilities" that discusses the current state of affairs for command-line password masking in Ant. Dale > The source for this task is not provided. :( > > -Rob A > >> -----Original Message----- >> From: Dick, Brian E. [mailto:[EMAIL PROTECTED] >> Sent: Friday, October 22, 2004 9:30 AM >> To: Ant Users List >> Subject: RE: Improving Tasks >> >> >> Look at >> >> http://homepage.ntlworld.com/wayne_grant/ant.html >> >> -----Original Message----- >> From: Erskine, Chris [mailto:[EMAIL PROTECTED] >> Sent: Friday, October 22, 2004 12:26 PM >> To: Ant Users List >> Subject: RE: Improving Tasks >> >> >> My first guess would be if this could be done using Swing >> with a popup. >> This would work an most systems - just not the ones where I am running >> in a >> terminal window or a background task like cron. >> >> Chris Erskine >> >> EDS Consulting Services >> F5-EDS-001 >> 2424 Garden of the Gods Rd >> Colorado Springs, CO 80919 >> >> Phone: 719-535-6064 >> >> Phone: >> mailto:[EMAIL PROTECTED] >> > -----Original Message----- >> > From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] >> > Sent: Friday, October 22, 2004 10:13 AM >> > To: Ant Users List >> > Subject: RE: Improving Tasks >> > >> > > > Rhino wrote: >> > > > >> > > > > 1. Provide for a masked input field so that it could be >> > > used to prompt >> > > > > for a password that would remain unreadable to anyone >> > > looking over the >> > > > > users shoulder. (I envision adding a 'mask="true"' >> > > parameter to make >> > > > > that possible with the default for 'mask' being 'false'.) >> > > > >> > > > I like this alot. >> > > > >> > > Stephan's reply to my post says that this has been attempted >> > > before but no >> > > one could find a way that worked on all of the platforms. I >> > > don't have any >> > > better ideas so you probably shouldn't hold your breath on >> > > this idea ;-) >> > >> > If you can implement this on any platform it would be helpful. >> Portability >> > may be an issue, but any implementation that is open source >> would be a >> > good start. I say give it a shot. >> > >> > -Rob Anderson >> > >> > >> > >> --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
