Answers for "python hide password input"

5

getpass

import getpass
x = getpass.getpass("Enter Password")
Posted by: Guest on August-31-2020
0

hide password in python

#https://docs.python.org/3/library/base64.html

>>> import base64
>>>  print(base64.b64encode("password".encode("utf-8")))
cGFzc3dvcmQ=
>>> print(base64.b64decode("cGFzc3dvcmQ=").decode("utf-8"))
password
Posted by: Guest on June-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language