weishijiajie/test/test_base64.py
2025-06-05 18:08:09 +08:00

9 lines
244 B
Python

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