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.