Customized base64 algorithm
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cusbase64-0.2.tar.gz
(2.3 kB
view details)
File details
Details for the file cusbase64-0.2.tar.gz
.
File metadata
- Download URL: cusbase64-0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f0701b7e652265e790f1c12e4371961d1285fc6c9ed3ac17fd0a3469eef30cc |
|
MD5 | eedbe7fcdc9a05bb7c2bef443c5b6925 |
|
BLAKE2b-256 | b86793137afaac1d2f622ae4a831cad25ba5379d4466fbc734294f2866a46e95 |