import base64
str = base64.b64encode(b'hello world')
print(str.decode('utf8'))
str = base64.b64decode(str)
print(str.decode('utf8'))
import base64
str = base64.b64encode(b'hello world')
print(str.decode('utf8'))
str = base64.b64decode(str)
print(str.decode('utf8'))