Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Encoding and Decoding Base64 String in Python

import base64
text = base64.b64encode("how are you".encode()).decode()
text
base64.b64decode(text).decode()