Password in Java

Hello,I need that in a Java program, when I write in its Terminal, the things I write don't appear in that terminal.Can Somebody Help me?ThanksSorry for my english
[199 byte] By [Hanamichia] at [2007-11-27 4:17:06]
# 1

> I need that in a Java program, when I write in its

> Terminal, the things I write don't appear in that

> terminal.

If you have Java 1.6 installed, you can use the readPassword(...) method from the Console class:

http://java.sun.com/javase/6/docs/api/java/io/Console.html

Else, have a look at this article:

http://java.sun.com/developer/technicalArticles/Security/pwordmask/

Good luck.

prometheuzza at 2007-7-12 9:23:42 > top of Java-index,Java Essentials,Java Programming...
# 2
Oh,It's just what I was looking for.Thank you very much
Hanamichia at 2007-7-12 9:23:42 > top of Java-index,Java Essentials,Java Programming...
# 3
> Oh,> > It's just what I was looking for.> > Thank you very muchGood to hear that and you're welcome.
prometheuzza at 2007-7-12 9:23:42 > top of Java-index,Java Essentials,Java Programming...