Replace letters when writing Python 2.7 [closed]

-1

It is possible to make that when the user types in a "raw_input" instead of showing what he writes (ej: "hola") only shows a sign (ej: "****") , as if it were a key. Is it possible to do it with Py2.7? If 3.7 is required and some module is not a problem. Thanks!

    
asked by Luca Mendez 25.08.2018 в 06:48
source

1 answer

2

Try this:

import getpass

pswd = getpass.getpass('Password:')
    
answered by 25.08.2018 / 16:49
source