getpass
Table of Contents

getpass

In [4]: import getpass

In [5]: pwd = getpass.getpass('password: ')
password: 

In [6]: print(pwd)
fjdkaljfdlaj