Skip to main content

python-xtea3

GitHub Actions PyPI - Version PyPI - Python Version PyPI - License

Buy me a coffee Support me Patreon Liberapay

XTEA3 implementation

Installation

pip install python-xtea3

How to use

from xtea3 import encipher, decipher

origin_data = b'Hello XTEA3 !' * 42
key_bytes = b'1234567890123456' * 2  # 32 bytes (256 bits)
num_rounds = 32
endian = '!'

encrypted_data = encipher(origin_data, key_bytes, num_rounds, endian)
print(encrypted_data.hex())

decrypted_data = decipher(encrypted_data, key_bytes, num_rounds, endian)
print(decrypted_data)
assert origin_data == decrypted_data

License

MIT

Metadata

Release files for python-xtea3 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-xtea3 0.2.0
File Size Uploaded Provenance
python_xtea3-0.2.0.tar.gz 335.7 kB Without provenance Details

Release files / python_xtea3-0.2.0.tar.gz

Download URL python_xtea3-0.2.0.tar.gz
Size 335.7 kB
Tags Source
SHA-256 checksum
How to use checksums
058473fc6d482b20d04c4aea2ecc5829d5d17dbb36f65e0b5871df1915cd8f0b
BLAKE2b-256 checksum
How to use checksums
bca79c8697713250eb556c701a2db7fd7da283fe057d0a858309a22076f01a4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for python-xtea3 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page