hide password in python

Solutions on MaxInterview for hide password in python by the best coders in the world

showing results for - "hide password in python"
Ezra
11 Sep 2018
1#https://docs.python.org/3/library/base64.html
2
3>>> import base64
4>>>  print(base64.b64encode("password".encode("utf-8")))
5cGFzc3dvcmQ=
6>>> print(base64.b64decode("cGFzc3dvcmQ=").decode("utf-8"))
7password