本文介绍以下,使用Python进行Base64 加解密方法。
Python
Base64
import base64 s = "暖星东" bs = base64.b64encode(s.encode("utf-8")) print(bs) s = str(base64.b64decode(bs),"utf-8") print(s)