The
readPassword()
method of theConsole
class has echoing disabled.
What's echo?
The
readPassword()
method of theConsole
class has echoing disabled.
What's echo?
That means you can't see the characters while you are typing in the console. As you would normally do.
This way you can ask for a password on the commandline but nobody can read by eavesdropping on your computer screen.
This is the equivalent of a password textfield in the GUI world where you see stars *
instead of the actual characters.
It means it doesn't show what the user types, like when you type a password at Linux login.