python base64加解密

加密字符串

encodestr = base64.b64encode("chenglee1234".encode(encoding='utf-8'))  

解密字符串

decodestr = base64.b64decode(encodestr)
print(decodestr.decode())

 

posted @ 2018-05-14 17:41  扶苏公子x  阅读(481)  评论(0编辑  收藏  举报