Thread: To enter password without displaying it in a password checking program

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    12

    To enter password without displaying it in a password checking program

    In a password checking program,when the password is enterd it should not be displayed.Which function should be used for that? If scanf() and gets() are used the text entered will be displayed.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Set "PasswordCharacter" to "*" in the TextBox properties.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Also here - http://cboard.cprogramming.com/showthread.php?t=110882
    Since you said scanf, I'll assume you want a C answer, and not a C# answer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  2. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  3. Password recovery program..
    By ExDigit in forum Windows Programming
    Replies: 1
    Last Post: 01-12-2002, 09:45 AM
  4. Password form in C program
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 12-29-2001, 06:16 AM
  5. Password program problem.
    By netboy in forum C Programming
    Replies: 3
    Last Post: 12-22-2001, 09:54 AM