To enter password without displaying it in a password checking program

This is a discussion on To enter password without displaying it in a password checking program within the C# Programming forums, part of the General Programming Boards category; In a password checking program,when the password is enterd it should not be displayed.Which function should be used for that? ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    Also here - To enter password without displaying it
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 10: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, 08:45 AM
  4. Password form in C program
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 12-29-2001, 05:16 AM
  5. Password program problem.
    By netboy in forum C Programming
    Replies: 3
    Last Post: 12-22-2001, 08:54 AM

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