Base32 Encode and Decode using Python

base64 module

import base64

text = 'Hello'
base32Str = base64.b32encode(text.encode('utf-8')).decode('utf-8')
print(base32Str)

text = base64.b32decode(base32Str).decode('utf-8')
print(text)

Leave a Comment

Cancel reply

Your email address will not be published.