password masking help

string pass="secret";

cout<<"Enter Password:";
cin>>pass;
cout<<"\n";

while(pass=="secret")

i need to asterisk the password
I searched the forum for "password masking" and this was the first thread to come up:
http://www.cplusplus.com/forum/general/3766/
Topic archived. No new replies allowed.