Skip to content

Encoder and decoder for the Base24 encoding, python implementation of https://github.com/kuon/java-base24

License

Notifications You must be signed in to change notification settings

caidanw/pybase24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI GitHub

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)

About

Encoder and decoder for the Base24 encoding, python implementation of https://github.com/kuon/java-base24

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages