Obfuscate Password with Python in Terminal on Mac - VicPhanDevOps/mac GitHub Wiki

• Press the command key and spacebar to launch Spotlight Search, type “terminal” and select the “Terminal” application.
image

• Type python3 and press the return key to enter the Python interactive shell.
image

• Type import getpass and press the return key to import the getpass module.
image

• Type < variable > = getpass.getpass(“< prompt >”) and press the return key to launch obfuscated password prompt.
image

⚠️ **GitHub.com Fallback** ⚠️