Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Help!!! I don't want to echo user password in Oracle 7 on Vax in Pro* C

Re: Help!!! I don't want to echo user password in Oracle 7 on Vax in Pro* C

From: <markp7832_at_my-deja.com>
Date: Mon, 22 Nov 1999 14:08:50 GMT
Message-ID: <81bipf$v1n$1@nnrp1.deja.com>


In article <81ao1q$tli$1_at_Masala.CC.UH.EDU>,   "mjl" <mjl04133_at_iname.com> wrote:
> Hello,
>
> I have written a Pro *C program on the VAX operating system.
>
> When a user types in his or her password, I do not want the password
to
> appear on the screen. I can't find any documentation on how to do
this at
> all.
>
> Here is a sample of my code:
>
> printf("\n\nEnter username: ");
> scanf("%s", username.arr);
> username.len = strlen((char *) username.arr);
>
> printf("\nEnter password: ");
> /* set term/noecho;
> system("noecho"); */
> scanf("%s", password.arr);
> password.len = strlen((char *) password.arr);
> /* set term/echo;
> system("noecho"); */
> printf("\n");
>
> Thank you.
> Any help would be deeply appreciated. My email address is
> mjl04133_at_iname.com.
>
> Jenene
>

I am not a 'C' programmer, but it looks to me like it is your program that is echoing the password to the screen. I would think that you would need to use getch to read without echo to prompt for the password instead of scanf.

--
Mark D. Powell -- The only advice that counts is the advice that  you follow so follow your own advice --

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Nov 22 1999 - 08:08:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US