Encoder and decoder for the Base24 encoding.
Project description
Base24 encode/decoder for Python
Encoder and decoder for the Base24 encoding, python implementation of https://github.com/kuon/java-base24
Usage
Install with pip:
$ pip install pybase24
Example:
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
License
Licenses under the MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
pybase24-1.0.0.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybase24-1.0.0.tar.gz.
File metadata
- Download URL: pybase24-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c7737a4ccdbcedc5a67e5552507e747bdfa76e0a06605f9d9c221e2c07d773
|
|
| MD5 |
45340ef1f030db63ebfcd63824a85acf
|
|
| BLAKE2b-256 |
951a5f5d91c1f8a65c851017bc7a2f87501d5cecd56ec644f4f66b2d0a696b43
|
File details
Details for the file pybase24-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pybase24-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e67694c00be9a3ac6e717a9428a598cd45782a287028fb55d0ff2cc12378736b
|
|
| MD5 |
a98eedd28c4d0b392e938a6b10a6aab0
|
|
| BLAKE2b-256 |
8da09e4d93bc074afd5f54ac08264626f81d8d3b873cc2c85ec454e371cb4d69
|