understanding
is a base64 encoding, a tool can be transmitted letters, characters, audio, etc. are used, greatly enhance the convenience of information transmission network.
Coded number and name of school
20,191,322 Wu Yong shower MjAxOTEzMjLlkLTms7Pmt4s =
python achieve base64 encoding and decoding
Code link https://github.com/Bill-wuxiuxiu/Python-/blob/master/base64%E7%BC%96%E7%A0%81%E4%B8%8E%E8%A7%A3%E7%A0 81%
code is as follows:
The use python base64 encoding and decoding module
import base64
A = input ( 'Enter 1 encoding, transcoding enter 2')
str1 = INPUT ( 'Enter or transcoding the encoded content')
IF A == '1':
A = base64.b64encode (str1.encode () )
Print (A)
the else:
B = base64.b64decode (str1)
Print (B)