Skip to main content

Encoder and decoder for the Base24 encoding.

Project description

PyPI GitHub

Base24 encode/decoder for Python

Encoder and decoder for the Base24 encoding, python implementation of


Install with pip:

$ pip install pybase24


from pybase24 import encode24, decode24

data = b'my test data'  # Length of bytes must be a multiple of 4

enc_data = encode24(data)
print(enc_data)  # 'G67S97T4WR2XEP4STZYE8'

dec_data = decode24(enc_data)
print(dec_data)  # bytearray(b'my test data')

assert data == dec_data  # True


Licenses under the MIT License (LICENSE-MIT or

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pybase24, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pybase24-1.0.0-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pybase24-1.0.0.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page