https://github.com/simonbolivarpy/chbencode-py
Encode string data by zlib, base64 invert
https://github.com/simonbolivarpy/chbencode-py
Last synced: about 1 year ago
JSON representation
Encode string data by zlib, base64 invert
- Host: GitHub
- URL: https://github.com/simonbolivarpy/chbencode-py
- Owner: SimonBolivarPy
- License: mit
- Created: 2025-03-14T23:05:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T23:23:52.000Z (over 1 year ago)
- Last Synced: 2025-03-15T00:23:18.696Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chbEncode 1.0.0
     
Encode string data by zlib, base64 invert, how its work ?
## Installation
Python requires [Python.org](https://www.python.org/) v3,7+ to run.
Install the dependencies and devDependencies and start the server.
```sh
python -m pip install pip
python -m pip install --upgrade pip
pip install git+https://github.com/SimonBolivarPy/chbencode-py.git
```
## Using
```Python
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