Enetering passwords in C

F

File not found

How to ask the user for a password and read it in such a way that it
isn't echoed to the screen as he types it.
 
S

santosh

File said:
How to ask the user for a password and read it in such a way that it
isn't echoed to the screen as he types it.

Standard C has no mechanism to do this. You'll have to look into the
terminal handling capabilities provided by your system. If you are
using Windows try <comp.os.ms-windows.programmer.win32> and if you are
using a UNIX/Linux try <comp.unix.programmer>. Other possible groups
are the microsoft.public.* hierarchy and
<comp.os.linux.development.apps>
 
T

Tor Rustad

File said:
How to ask the user for a password and read it in such a way that it
isn't echoed to the screen as he types it.

Why not check the FAQ first?
 
A

Army1987

How to ask the user for a password and read it in such a way that it
isn't echoed to the screen as he types it.
Can't be done in standard C, but some systems have a function
getpass(). See www.c-faq.com, question 19.1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top