-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've never tried this in Java but I've seen this question before. It's a stty thing. You want to turn off echo. There some fairly readable code in Term-ReadPassword up on CPAN. It might give you an idea of how to tackle this. (temporarily reopen TTY and TTYOUT) $original_flags & ~(ISIG | ECHO | ICANON); # -isig: disable the checking of characters agains the special control # characters INTR, QUIT, SUSP # -echo: do not echo back every character typed # -icanon: disable canonical input (ERASE and KILL processing). Joshua b. Jore Minneapolis Ward 3, precinct 10 http://www.greentechnologist.org On Mon, 14 Jan 2002, Bob Tanner wrote: > 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 > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (OpenBSD) Comment: For info see http://www.gnupg.org iD8DBQE8QvHgfexLsowstzcRAhSHAKCQsDTECNOrVgp2evI3p1PhTAzKmgCgmF1L 0tjaUwJ4xbijwD6aC6htAjo= =IfhV -----END PGP SIGNATURE-----