Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62047

Re: Python, mySQL and password

Date 2013-12-16 12:46 +0100
From Ervin Hegedüs <airween@gmail.com>
Subject Re: Python, mySQL and password
References <CA+FnnTz2pmBHQ7OsK5jAnZiovGeUYni_kne_F4QbWEainScStw@mail.gmail.com> <20131216111640.GA4852@arxnet.hu> <l8mom2$9ee$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.4204.1387194377.18130.python-list@python.org> (permalink)

Show all headers | View raw


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.
 

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python, mySQL and password Ervin Hegedüs <airween@gmail.com> - 2013-12-16 12:46 +0100

csiph-web