当前位置:首页 > 编程语言 > 正文

python_base64加密、解密

11-19 编程语言

标签:base   col   imp   nbsp   python   res   base64   code   pre   

一、base64加密、解密

import base64
s = abc
b = base64.b64encode(s.encode()) #加密
result = b.decode()
print(result)

b = base64.b64decode(YWJj) #解密
print(b.decode())

 

python_base64加密、解密

标签:base   col   imp   nbsp   python   res   base64   code   pre   

温馨提示: 本文由杰米博客推荐,转载请保留链接: https://www.jmwww.net/file/biancheng/12159.html