Customized base64 algorithm
Project description
Customize the indexing string of base64 encoding.
You can set you own indexing string using the config() method.
Usage:
b = 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.1.tar.gz
(2.2 kB
view details)
File details
Details for the file cusbase64-0.1.tar.gz.
File metadata
- Download URL: cusbase64-0.1.tar.gz
- Upload date:
- Size: 2.2 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 |
a8ece6cb7e3ea73c94df04bb54a40d0b8b9f9b6d2038d04f82dc063e4d00e715
|
|
| MD5 |
8ee389c8423ae7c1be3dd7113fd27fab
|
|
| BLAKE2b-256 |
129a8a482e9e18df7c48e8f84e372ae8e20e52698bfbb6722eb123d12277d432
|