from base64_custom import Base64 base64 = Base64() encoded = base64.encode(b'hello world') print(f'Encoded: {encoded}') # Output: aGVsbG8gd29ybGQ= decoded = base64.decode(encoded) print(f'Decoded: {decoded.decode()}') # Output: hello world