This was asked recently on the TCJUG.  Noone offered a solution other than
using JNI to call either getpass(3) or tcsetattr(2).  Me thinks the Java
designers decided that terminal I/O was not part of the least common
demoninator.

Mike

> -----Original Message-----
> From: tclug-devel-admin at mn-linux.org
> [mailto:tclug-devel-admin at mn-linux.org]On Behalf Of Bob Tanner
> Sent: Monday, January 14, 2002 3:47 AM
> To: tclug-devel at mn-linux.org
> Subject: [TCLUG-DEVEL] Hidding passwords in Java?
>
>
> Is there any code out there that will hide passwords when type at
> the console?
>
> I'm finishing up on a console program and it requires
> username/password, but I
> cannot seem to figure out how to hide the password as it's being typed.
>
> I'm sure some other Java programs have run into this, but google
> searches have
> been unsuccessful.
>
> --
> Minneapolis St. Paul Twin Cities MN        | Phone : (952)943-8700
> http://www.mn-linux.org Minnesota Linux    | Fax   : (952)943-8500
> Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
>
> _______________________________________________
> tclug-devel mailing list
> tclug-devel at mn-linux.org
> https://mailman.mn-linux.org/mailman/listinfo/tclug-devel