Masking Passwords

This is a discussion on Masking Passwords within the C++ Programming forums, part of the General Programming Boards category; I have no idea how.... anyone have a clue...

  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
    Katy, Texas
    Posts
    2,309
    On input? Saved in a file? Across a network?
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  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
    Katy, Texas
    Posts
    2,309
    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.
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  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, 09: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, 01:49 PM

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