PDA

View Full Version : password field



trekker
07-10-2003, 04:25 AM
how to i create a password field for a DOS app in C?

e.g.

username:trekker
password:*****


I would also want a few links/books on DOS API programming.

TIA

Hammer
07-10-2003, 06:00 AM
>>It's in the FAQ
... but I haven't labelled it very well, so here's the link:
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1045691686&id=1043284392

rajesh23
09-27-2003, 01:56 AM
hi

get the name as such. and for the password field you can use getch in a loop and get the string value and get it validated. It would be better if u keep the routines in the program module itself instead of using a separate file for stroring the username and password due to security reasons. Or you can go for encryption. However, the former approach would be a better one.

RaAjEsH23