Skip to main content

Customize the indexing string of base64 encoding.

You can set you own indexing string using the config() method.

Usage:

import cusbase64

b = cusbase64.CusBase64()
b.encode('binary\x00string') # Output: YmluYXJ5AHN0cmluZw==
b.decode('YmluYXJ5AHN0cmluZw==') # Output: binary\x00string

b.config('aABCDEFGHIJKLMNOPQRSTUVWXYZbcdefghijklmnopqrstuvwxyz0123456789+/')
b.decode('c2UsYi1kYWM0cnUjdFlvbiAjb21wbFU0YP==') # Output: self-destruction complete

Release files for cusbase64 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cusbase64 0.2
File Size Uploaded
cusbase64-0.2.tar.gz 2.3 kB Details

Release files / cusbase64-0.2.tar.gz

Download URL cusbase64-0.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2f0701b7e652265e790f1c12e4371961d1285fc6c9ed3ac17fd0a3469eef30cc
BLAKE2b-256 checksum
How to use checksums
b86793137afaac1d2f622ae4a831cad25ba5379d4466fbc734294f2866a46e95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page