1

When the user types password on a terminal, it should not be displayed (or something like ******* should be displayed). How do I achieve this?

In bash passwords can be inputed in this way-

#!/bin/bash
# Read Password
echo -n Password: 
read -s password

Is it possible to do in c++?

I am on Linux, want to know Linux and windows solution both.

Arafat Hasan
  • 2,811
  • 3
  • 21
  • 38

0 Answers0