base64

#解密
import base64 #能加密,也能解密
s='https://www.cnblogs.com/zanjiahaoge666/p/7242642.html'
b = base64.b64encode( s.encode() ) #加密
result= b.decode()
print(result)
---------------------------------------------------------
b = base64.b64decode( '5ZOI5ZOI5ZOI5ZOI' ) #解密
print(b.decode())
posted @ 2021-01-29 13:37  Huise.J  阅读(91)  评论(0编辑  收藏  举报