Re: password?

From: Michael A. Covington (look_at_www.covingtoninnovations.com.for.address)
Date: 03/11/04


Date: Wed, 10 Mar 2004 19:55:18 -0500

Dear ae,

I've written some code to do exactly what you want -- like
Console.ReadLine(), with normal handling of backspaces and Enter, but
everything else echoes as the character you specify (such as *) rather than
as itself.

If input is redirected to a file, Console.ReadLine() is used in place of my
other routine, automatically.

This is part of a larger project which I plan to release to the public
domain later.

Please e-mail me at

mc
at
uga.edu

Best regards,
----------------------------------------------------------------------------
---------
Michael A. Covington, Associate Director
Artificial Intelligence Center, The University of Georgia
http://www.ai.uga.edu/~mc

"ae" <anonymous@discussions.microsoft.com> wrote in message
news:BA4FDD2A-0247-4FD5-A9E8-389D001C273F@microsoft.com...
> If I were to be using the console with C#, is it possible to hide my
characters that I am typing? I need this for security purposes on an
application and dont' know how it's done in C#.
>
> I think charPassword is available only if I were to use a textbox, but
don't think it'll work in this case.



Relevant Pages