源代码
import base64 def b64encode(basec): PlainText = basec.encode("utf-8") a = base64.b64encode(PlainText) CipherText = a.decode("utf-8")