Hide Password On Unix

This is a discussion on Hide Password On Unix within the C Programming forums, part of the General Programming Boards category; Hi, ON WINDOWS IT WORKS FINE. I would like to know how can I write a program in 'C' so ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    5

    Hide Password On Unix

    Hi,

    ON WINDOWS IT WORKS FINE.

    I would like to know how can I write a program in 'C' so that when the user types in the password, the characters are not displayed on the screen.

    I WANT TO DO THIS ON UNIX

    Ta,
    Moepi

  2. #2
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    You just have to find a function in UNIX that is equal to the getch function. Check man pages or check it on the google.

    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Registered User
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    212
    in the <unistd.h> header a function called, getpass(char* prompt), are others such as crypt(); check the man pages for unistd.h, ncurses, or the man page for the functions mentioned.

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. Enter password, hide by "*".
    By toysoldier in forum C++ Programming
    Replies: 28
    Last Post: 08-15-2004, 09:13 AM
  3. Password prompt in unix w/o \b
    By rafe in forum C++ Programming
    Replies: 1
    Last Post: 10-09-2002, 09:54 AM
  4. Hide Password Chars
    By Moepi in forum C Programming
    Replies: 4
    Last Post: 05-24-2002, 04:29 AM
  5. How to hide password
    By Unregistered in forum Windows Programming
    Replies: 7
    Last Post: 02-02-2002, 05:28 PM

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