base64 module
import base64
text = 'Hello'
base64Str = base64.b64encode(text.encode('utf-8')).decode('utf-8')
print(base64Str)
text = base64.b64decode(base64Str).decode('utf-8')
print(text)
import base64
text = 'Hello'
base64Str = base64.b64encode(text.encode('utf-8')).decode('utf-8')
print(base64Str)
text = base64.b64decode(base64Str).decode('utf-8')
print(text)
Leave a Comment
Cancel reply