📜  在 python 代码示例中隐藏密码

📅  最后修改于: 2022-03-11 14:46:11.887000             🧑  作者: Mango

代码示例1
#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