1

I want to write a program in C that takes username and password as input. Is it possible to replace the password with ******** while the user is typing it in the terminal?

./a.out
USERNAME: someusername
PASSWORD: ********

If it is possible, how can that be done?

NilsK
  • 125
  • 8

0 Answers0