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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for bitoli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 488119064e744253f4b38faef2f9499aa5fae2a6842c90218e8db767e319500f
MD5 906441ca3ca35ec1c42a4c17eca94b90
BLAKE2b-256 d85adf7a848535a87f89207e8c9d1a252fafae820da597f0d4c23ffad9fc8911

See more details on using hashes here.

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

Hashes for bitoli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c3df075efa0b507f8b2ab5e654ba1a5edef0c167655c0a3aed8f247e4b5701a
MD5 b6639957f764e614154564644230f20b
BLAKE2b-256 2e278ee6485ea53885ef6b60dd94838479bc98a19e7722e288d744b9aae0de00

See more details on using hashes here.

Supported by

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