Any idea how to get like this feature in c or c++
password= ********
but at the end system gets right password(means real input) but other people see this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To confirm the password of a user, use pam (the official page is hosted on kernel.org and therefore down as of writing), in particular
pam_authenticate.If your application has its own authentication architecture (and most of the time, it shouldn’t), execute
stty -echo, ask for the password, and then executestty echoto restore the original behavior.