[IronPython] How can I read password from console in IronPython?
husfloen at gmail.com
Thu Oct 12 02:49:15 CEST 2006
System.Console should have a GetKey() that I think you can use.
On 10/10/06, Roman Miklos <RMiklos at pss.sk> wrote:
> I need to get password from console, I tried
> import getpass
> pwd = getpass.getpass()
> But this do not work - I get a Warning: Problem with getpass. Password may
> be echoed.
> and really the password will be displayed on console.
> I looked at System.Console which has the methods Read() and ReadLine(), but
> I don't know how to configure
> these methods, so that they will not display the input string.
> I searched on web for an example in VB.NET or C#, but I found nothing.
> So, my question is: How can I read password from console in IronPython?
> Mgr. Ing. Roman MIKLÓŠ
> Prvá stavebná sporiteľňa a.s.
> Bajkalská 30, P. O. Box 48
> 829 48 Bratislava 25
> Tel.: +421/ 2 / 582 31 174
> Fax: +421/ 2 / 582 31 109
> users mailing list
> users at lists.ironpython.com
More information about the Ironpython-users