password field

This is a discussion on password field within the A Brief History of Cprogramming.com forums, part of the Community Boards category; how to i create a password field for a DOS app in C? e.g. username:trekker password:***** I would also want ...

  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-30-2005, 12:21 AM
  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, 03:41 AM
  4. written command line password generator
    By lepricaun in forum C Programming
    Replies: 15
    Last Post: 08-17-2004, 09:42 PM
  5. Password Field
    By Explicit in forum C Programming
    Replies: 10
    Last Post: 05-22-2004, 09:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21