I\'m using Console.ReadLineto read the input of the user. However, I want to hide/exclude the inputted text on the console screen while typing. For example, whe
Console.ReadLine
Here is a short implementation. thx @ojblass for the idea
System.Console.Write("password: "); string password = null; while (true) { var key = System.Console.ReadKey(true); if (key.Key == ConsoleKey.Enter) break; password += key.KeyChar; }