7
Answers

Password in C# Console Application

Keith

Keith

9y
49.4k
1

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)