console: read password without echo

andrewsc

Member
Joined
Sep 12, 2003
Messages
7
Location
Sydney, Australia
Hi,

I developed a console application, using WriteLine() and readLine(). At some stage, I invite the user to enter a password. This works fine, but ...

As the user types the password into the command-line window, the characters nare being echoed on the screen. This makes the application insecure, since the password can be seen by anyone watching over the shoulders of the user.

Is there any way to turn off the echo as characters are being types into the command line ?
 
Back
Top