XXTEA for Python
Introduction
XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Python.
It is based on CFFI, so it is fast and support both cpython and pypy.
It is different from the original XXTEA encryption algorithm. It encrypts and decrypts raw binary data instead of 32bit integer array, and the key is also the raw binary data.
Installation
pip install xxtea-py
Usage
Python2:
import xxtea
text = "Hello World! 你好,中国!"
key = "1234567890"
encrypt_data = xxtea.encrypt(text, key)
decrypt_data = xxtea.decrypt(encrypt_data, key)
print(text == decrypt_data);
Python3:
import xxtea
text = "Hello World! 你好,中国!"
key = "1234567890"
encrypt_data = xxtea.encrypt(text, key)
decrypt_data = xxtea.decrypt_utf8(encrypt_data, key)
print(text == decrypt_data);
Metadata
Release files for xxtea-py 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xxtea-py-1.0.3.tar.gz | 205.8 kB | Without provenance | Details for xxtea-py-1.0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xxtea_py-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for xxtea_py-1.0.3-py3-none-any.whl |
| xxtea_py-1.0.3-py2-none-any.whl | Python 2 | none | any | Details for xxtea_py-1.0.3-py2-none-any.whl |
Total release size: 219.3 kB
Release files / xxtea-py-1.0.3.tar.gz
| Download URL | xxtea-py-1.0.3.tar.gz |
|---|---|
| Size | 205.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32ee8e2c3a6c1fb86d3b4e06745ee041c2e7fcd6bcd7bd57d9d1134108307ce6
|
|
BLAKE2b-256 checksum How to use checksums |
d8bd76a41a104223dbb9fb9600680f0f7affb6dacda1a29377c560ee30118630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
|
Release files / xxtea_py-1.0.3-py3-none-any.whl
| Download URL | xxtea_py-1.0.3-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86e3194fe5bdc68ea6d30cf1d7d08c832250dfa33a366624e202a1f6376e1486
|
|
BLAKE2b-256 checksum How to use checksums |
9433474350314d2a64f8b6edb982201f6a82319ec6e60eb0e3ddf537e294fb14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
|
Release files / xxtea_py-1.0.3-py2-none-any.whl
| Download URL | xxtea_py-1.0.3-py2-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
8df8ee0d76a4bb3a033ff666173f42ed1f01dd21d1b12423118e0e9a30e2e4e8
|
|
BLAKE2b-256 checksum How to use checksums |
e426c7b3f53f61e779f94aad8e836cbc0f60e723b177ab229a79ffe61451b04a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7
|
Security for xxtea-py 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.