7
Reply

Password in C# Console Application

Keith

Keith

Jul 21 2007 7:00 AM
49.3k

I'm prompting the user to key in his id and password in console application.
How do I hide or change the password to 'xxxxx' when the user keys in ?

Console.WriteLine("Pls key in your Login ID");
loginid = Console.ReadLine();
Console.WriteLine("Pls key in your Password");
password = Console.ReadLine();





Answers (7)