python3 bytes to base64 string code example Example: decode base64 python import base64 msg = base64.b64decode(msg)