#解密
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())