0

I want to make one username and password field in my program . I was wondering if there is a way to display the password field something like this " **** " instead of showing it to me while I type it in the console .

Teo
  • 3,326
  • 9
  • 38
  • 72

2 Answers2

2

A simple google search revealed this and this and lots more...

Community
  • 1
  • 1
NiklasMM
  • 2,870
  • 2
  • 21
  • 26
0

As I'm reading around and testing, you can't do it "platform independent". I found this topic which explains it. If it's ok for you not beeing platform dependent, why don't you use that lib mentioned there (conio.h) and use getch?

Francesco Belladonna
  • 10,949
  • 12
  • 77
  • 142