(s, strip_newlines=True)
| 48 | |
| 49 | @staticmethod |
| 50 | def decode_bytes(s, strip_newlines=True): |
| 51 | decoded = b64decode(s).decode('utf-8', errors='ignore') |
| 52 | return decoded.replace('\r\n', '').replace('\n', '') if strip_newlines else decoded |
| 53 | |
| 54 | @staticmethod |
| 55 | def encode_string(s): |