Thread: password field

  1. #1
    Registered User trekker's Avatar
    Join Date
    Mar 2002
    Posts
    46

    password field

    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
    to boldy code where...

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>It's in the FAQ
    ... but I haven't labelled it very well, so here's the link:
    http://faq.cprogramming.com/cgi-bin/...&id=1043284392
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    45

    posted solution

    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [Q]Hide Password
    By Yuri in forum C++ Programming
    Replies: 14
    Last Post: 03-02-2006, 03:42 AM
  2. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  3. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  4. written command line password generator
    By lepricaun in forum C Programming
    Replies: 15
    Last Post: 08-17-2004, 08:42 PM
  5. Password Field
    By Explicit in forum C Programming
    Replies: 10
    Last Post: 05-22-2004, 08:22 PM