3

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
  • 2,990
  • 5
  • 30
  • 47

1 Answers1

2

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

Felice Pollano
  • 32,038
  • 8
  • 71
  • 112