Created
November 17, 2016 01:27
-
-
Save jjlumagbas/40ac3e6cd568d81ebb83e9d5575004bc to your computer and use it in GitHub Desktop.
Hide user input in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getpass | |
age = getpass.getpass('Enter your age:') | |
print("Entered age is: " + age) |
Thanks so much.
Cool thank you!
Thank you
Thanks! :D
Is there a way instead of hiding it to trasnform the input to this things: *
Hi @JoepTM
Is there a way instead of hiding it to trasnform the input to this things: *
You can give a try to stdiomask module.
Hope that will help! :)
Thanks!
thanks!
thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code works only in terminal.