prof-rossetti / intro-to-python

An Introduction to Programming in Python
Other
97 stars 244 forks source link

Getpass Module Notes #105

Closed s2t2 closed 2 years ago

s2t2 commented 2 years ago

How are there no notes about getpass?

We need to provide students with an example of how to keep user-inputted credentials safe in Google Colab.

s2t2 commented 2 years ago
Screen Shot 2022-02-23 at 9 40 25 PM
s2t2 commented 2 years ago
>>> fav_flavor = input("Please input your favorite icecream flavor: ")
Please input your favorite icecream flavor: vanilla bean
>>> 
>>> 
>>> 
>>> my_password = getpass("Please input your secret password: ")
Please input your secret password: 🔑
>>> 
s2t2 commented 2 years ago

https://github.com/prof-rossetti/intro-to-python/blob/main/notes/python/modules/getpass.md