加密字符串
encodestr = base64.b64encode("chenglee1234".encode(encoding='utf-8'))
解密字符串
decodestr = base64.b64decode(encodestr) print(decodestr.decode())
加密字符串
encodestr = base64.b64encode("chenglee1234".encode(encoding='utf-8'))
解密字符串
decodestr = base64.b64decode(encodestr) print(decodestr.decode())
转载于:https://www.cnblogs.com/chenglee/p/9037265.html