Metadata-Version: 2.4
Name: cxxtea
Version: 1.0.7
Summary: cxxtea is a simple block cipher implemented in C
Home-page: https://github.com/Rin-Wood/cxxtea
Author: wood
Author-email: miraclerinwood@gmail.com
License: BSD
Keywords: cxxtea
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# cxxtea

`cxxtea` is a Python package for decrypting data, using a custom XXTEA decryption algorithm implemented in C.

## Features

- Provides efficient XXTEA decryption functionality, based on C implementation.
- Supports Python 3.6+

## Installation

Install the latest version of `cxxtea` from PyPI:

```bash
pip install cxxtea
```

## Usage
Here's how to use `cxxtea` for decryption:

```python
import cxxtea

data = b'...your encrypted data...'
sign = b'...your encryption sign...'
key = b'...your encryption key...'
delta = 0x9e3779b9 # default 0x9e3779b9
cut = 1 # default 1(True)
input_little_endian = 1 # bool # default 1(True)
output_little_endian = 1 # bool # default 1(True)

dec = cxxtea.decrypt(data, sign, key, delta, cut, input_little_endian, output_little_endian)
