python如何使用base64加密解密密码?
加密示例:
import base64
mima='mima123xxxx'.encode('utf-8')
bs64=base64.b64encode(mima)
print(bs64)
解密示例:
import base64
password = base64.b64decode('xxxx').decode('utf-8')
print(password)
加密示例:
import base64
mima='mima123xxxx'.encode('utf-8')
bs64=base64.b64encode(mima)
print(bs64)
解密示例:
import base64
password = base64.b64decode('xxxx').decode('utf-8')
print(password)
可以使用uncompyle6
工具
使用pip可以直接安装:
pip install uncompyle6
反编译命令(两种形式):
uncompyle6 xxx.pyc>xxx.py
uncompyle6 -o xxx.py xxx.pyc
示例:
uncompyle6 utils.pyc > utils.py