Password hiding in console

12 views
Skip to first unread message

Simran Jeet

unread,
Oct 2, 2016, 4:19:36 AM10/2/16
to lugg...@googlegroups.com
I started using Eclipse with Pydev recently for python code. I am
writing a script where I'd like to enter a password via the console,
and the password should not be displayed.

So far I was calling getpass.getpass(), which was fine when I ran my
script in command line, but run in Eclipse the password is displayed
while typing it. Apparently, this is a documented behavior for
getpass. Do you know any workaround for this ?

Harbhag Singh Sohal

unread,
Oct 5, 2016, 5:39:18 AM10/5/16
to lugg...@googlegroups.com
See if following link is of any help to you
https://pymotw.com/2/getpass/


--
Whether you think you can or you cannot you are absolutely right.
---
You received this message because you are subscribed to the Google Groups "Linux User Group , Ludhiana" group.
To unsubscribe from this group and stop receiving emails from it, send an email to luggndec+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/luggndec.
To view this discussion on the web, visit https://groups.google.com/d/msgid/luggndec/CAHPFDtWzfcmuYcEO0safVj1efjAA4K%2BOPvsYD95R5DOsJC8nrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages