1. Python-Base64加解密

import base64

s = "暖星东"
//加密
bs = base64.b64encode(s.encode("utf-8"))
print(bs)

//解密
s = str(base64.b64decode(bs),"utf-8")
print(s)
posted @ 2022-09-19 09:34  LuckMeteor  阅读(19)  评论(0编辑  收藏  举报