Best practice prompting for password

Discussion in 'Python' started by GiBo, Sep 7, 2007.

  1. GiBo

    GiBo Guest

    Hi,

    what's the best practice to securely prompt user for password on console
    in Python? IIRC some programs like SSH do a lot to ensure that the input
    comes from TTY and is not redirected from somewhere and several other
    checks. In the case of OpenSSH even the password prompt is always
    displayed regardless if the output is redirected to a file or not.

    Any pointers to best practice or code snippet of python password prompt?

    Thanks

    Gibo
     
    GiBo, Sep 7, 2007
    #1
    1. Advertising

  2. In message <>, GiBo wrote:

    > what's the best practice to securely prompt user for password on console
    > in Python? IIRC some programs like SSH do a lot to ensure that the input
    > comes from TTY and is not redirected from somewhere and several other
    > checks.


    Does it? Why bother?

    It's not where the password comes _from_ that you have to be careful about,
    it's what you do with it after you get it.
     
    Lawrence D'Oliveiro, Sep 8, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TGVl?=

    Prompting for Username/password

    =?Utf-8?B?TGVl?=, Sep 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    306
    =?Utf-8?B?TGVl?=
    Sep 7, 2004
  2. ThunderMusic
    Replies:
    2
    Views:
    305
    ThunderMusic
    Sep 19, 2006
  3. AAaron123
    Replies:
    2
    Views:
    2,363
    AAaron123
    Jan 16, 2009
  4. AAaron123
    Replies:
    1
    Views:
    1,418
    Oriane
    Jan 16, 2009
  5. Prodip Saha
    Replies:
    0
    Views:
    146
    Prodip Saha
    Aug 13, 2004
Loading...

Share This Page