【笔记】Python3实现Base64编解码

前言

Python3实现Base64编解码

Base64编码

1
2
3
import base64

result = str(base64.b64encode("未编码的字符串".encode('utf-8')), 'utf-8')

Base64解码

1
2
3
import base64

result = str(base64.b64decode("已编码的字符串"), 'utf-8')

完成

参考文献

CSDN——fireflylane