Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Encode and decode Base64 without "=" padding

Project description

Encode and decode Base64 without “=” padding.

RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes using “=” characters. However many protocols choose to omit the “=” padding.

Installing

python3 -m pip install unpaddedbase64

Using

import unpaddedbase64
assert (unpaddedbase64.encode_base64(b'\x00')) == 'AA'
assert (unpaddedbase64.decode_base64('AA')) == b'\x00'

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 unpaddedbase64, version 2.1.0
Filename, size File type Python version Upload date Hashes
Filename, size unpaddedbase64-2.1.0-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size unpaddedbase64-2.1.0.tar.gz (5.6 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