Adaptive compression and encryption of data
Project description
bitoli is a Python package for adaptive compression and encryption of data. It offers simple methods to securely encode and decode data using AES encryption in CFB mode and adaptive compression techniques.
Features
Adaptive compression using zlib
AES encryption with CFB mode
Base85 encoding for non-compressed data
Simple API for encoding and decoding data
Installation
You can install bitoli using pip:
pip install bitoli
Usage
Here is a simple example of how to use bitoli:
from bitoli import encode, decode
key = "your_password"
data = "This is some data to encrypt and compress."
# Encode data
encoded_data = encode(data, key)
print("Encoded data:", encoded_data)
# Decode data
decoded_data = decode(encoded_data, key)
print("Decoded data:", decoded_data)
API
encode(data, key): Encrypts and compresses the data using the provided key.
decode(data, key): Decompresses and decrypts the data using the provided key.
License
This project is licensed under the MIT License.
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
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 bitoli-0.1.1.tar.gz.
File metadata
- Download URL: bitoli-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
488119064e744253f4b38faef2f9499aa5fae2a6842c90218e8db767e319500f
|
|
| MD5 |
906441ca3ca35ec1c42a4c17eca94b90
|
|
| BLAKE2b-256 |
d85adf7a848535a87f89207e8c9d1a252fafae820da597f0d4c23ffad9fc8911
|
File details
Details for the file bitoli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bitoli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c3df075efa0b507f8b2ab5e654ba1a5edef0c167655c0a3aed8f247e4b5701a
|
|
| MD5 |
b6639957f764e614154564644230f20b
|
|
| BLAKE2b-256 |
2e278ee6485ea53885ef6b60dd94838479bc98a19e7722e288d744b9aae0de00
|