Hi,
Could any one help me to write a C program for password mask
with ******. I mean whatever word i will type that will show on the screen as ***** and should store the correct value in a variable.
Thanks in advance
Krishna
Hi,
Could any one help me to write a C program for password mask
with ******. I mean whatever word i will type that will show on the screen as ***** and should store the correct value in a variable.
Thanks in advance
Krishna
Krishna
Check out the function getpass()...this function is used for getting the password without echoing on the terminal. It may not echo '*'s as you need.
Check out "man getpass".
Deepa
getpass() will work fine, but I need password mask as "***"
Did u try "ioctl"?
I havent tried so far..but feel that u can do it using this system call.
I don't have idea about ioctl, if you know please send me the example code to : kkodava@maxis.com.my
krishna, you are not a newcomer here, your post count is 40. This makes it even more disappointing when you break the rules. Please reread the forum rules. And notice rule number 10:
To solve your problem you will need to turn echo off. Then you will write a "*" for each character that you read. I do something very close to that in this post.