Keith

Keith

  • NA
  • 36
  • 0

Password in C# Console Application

Jul 21 2007 7:00 AM

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 (8)