Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.14 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.14 KB

chbEncode 1.0.0

Encode string data by zlib, base64 invert, how its work ?

Installation

Python requires Python.org v3,7+ to run. Install the dependencies and devDependencies and start the server.

python -m pip install pip
python -m pip install --upgrade pip
pip install git+https://github.com/SimonBolivarPy/chbencode-py.git

Using

from chbencode import algorithmb
b = algorithmb()
secret = "PRIVATEDATA" # | =wKCQiGADsSzPNNzM30zRzyyM/c1J9kzzBvzsg09TzJe
encode_string = b.encd(secret)
print(encode_string)

decode_string = b.decd(encode_string)
print(decode_string)

Note

result = ''.join(map(chr,data)) result = ''.join([chr(x) for x in data]) result = bytearray(data).decode('ascii') result = bytes(data).decode('ascii')

License

MIT