Thread: Masking Passwords

  1. #1
    Registered User Sshakey6791's Avatar
    Join Date
    Nov 2008
    Location
    -
    Posts
    57

    Post Masking Passwords

    I have no idea how.... anyone have a clue

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    On input? Saved in a file? Across a network?
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Registered User Sshakey6791's Avatar
    Join Date
    Nov 2008
    Location
    -
    Posts
    57
    Input

  4. #4
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Without firsthand knowledge of this area, I'm going to propose that you'll need platform specific calls to functions (like conio.h on windows) to access the keyboard buffer and cause backspaces to occur on each getchar() call you make to read the password. I'm sure someone more knowledgeable will chime in shortly.
    Mainframe assembler programmer by trade. C coder when I can.

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You need to read characters without actually showing them - search the forum for "reading password" and I'm sure you'll find a thread or three on the subject. Note that this is DEFINITELY NOT beginner stuff [although I suppose a copy'n'paste of some existing code would be sufficient], and it is very much system dependant in the sense that Windows does it one way, Linux/Unix does it another way, and I'm sure that the older MacOS (before MacOS X) does it a completely different way again.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char swaps, and echo() password masking
    By spencerhs5 in forum C Programming
    Replies: 2
    Last Post: 07-25-2006, 08:25 PM
  2. password masking
    By xixpsychoxix in forum C Programming
    Replies: 16
    Last Post: 03-09-2006, 03:40 PM
  3. Database programming and passwords
    By Squintz in forum Windows Programming
    Replies: 6
    Last Post: 11-19-2003, 09:05 PM
  4. DIB masking
    By SAMSAM in forum Windows Programming
    Replies: 1
    Last Post: 02-03-2003, 10:22 AM
  5. Masking a surface
    By malloc(BOB) in forum Windows Programming
    Replies: 0
    Last Post: 09-05-2002, 12:49 PM