Python, mySQL and password
Ervin Hegedüs
airween at gmail.com
Mon Dec 16 06:46:11 EST 2013
Hello Peter,
On Mon, Dec 16, 2013 at 12:38:33PM +0100, Peter Otten wrote:
> Ervin Hegedüs wrote:
>
> > dsn['passwd'] = raw_input("Enter password for %s: " % (dsn['user']))
> >
[...]
> > but at this way the password what you type will showing!
>
> To avoid that use getpass.getpass() instead of raw_input().
>
> http://docs.python.org/2/library/getpass.html
well, thanks a lot :)
a.
More information about the Python-list
mailing list