Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitoli-0.1.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

bitoli-0.1.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page