c - Obscuring user input in command line programs -
i'm writing few functions getting , storing user password. it's working ok there way of replacing typed @ prompt asterisk, example?
this standard behaviour in windowed applications i've had through c libraries of fgets/getc type functions don't seem offer control on this.
edit: trying ansi c, running on os x. answers below have pointed me in right direction - search didn't turn few of links...
you didn't platform or compiler, see ansi c no-echo keyboard input. maybe getch() or kbhit() or getpass(), depending on environment.
Comments
Post a Comment