4

If i use Console.ReadLine() to read a password then all the text entered is visible on the console. How can i read the password without making it visible?

GreyCloud
  • 3,030
  • 5
  • 32
  • 47

1 Answers1

2

You can use Console.ReadKey(true),and concatenate internally chars into a string

Felice Pollano
  • 32,832
  • 9
  • 75
  • 115