getpass
Stdlib — SecurityPython 2.0+Intermediate
Prompt for password without echoing to terminal
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import getpass print(f"Module: getpass") print(f"Contents: {dir(getpass)[:10]}")
The getpass module is part of Python's standard library. Prompt for password without echoing to terminal.
Try in PlaygroundTags
stdlibsecuritycryptography