The base64 module also includes encoding and decoding functions for Base32. These functions are very similar to the Base64 functions:
import base64
# Creating a string
s = "Hello World!"
# Encoding the string into bytes
b = s.encode("UTF-8")
# Base32 Encode the bytes
e = b...