I run this module on python shell,
*encoder.py* import base64 def str_to_base64(x): return base64.b64encode(x.encode(\'utf-8\')) print(str_to_base64(\'