Skip to main content

xxtea

Project description

Description

xxtea implemented as a Python extension module.

Installation

$ pip install xxtea -U

Example

from xxtea import decrypt, encrypt

key = "xxtea is good"
s = "xxtea is really good"

enc = encrypt(s, key, True)
dec = decrypt(enc, key, True)

print len(enc), enc
print len(dec), dec
assert s == dec

Project details


Download files

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

Source Distributions

xxtea-0.1.zip (6.5 kB view hashes)

Uploaded Source

xxtea-0.1.tar.gz (4.7 kB view hashes)

Uploaded Source

xxtea-0.1.tar.bz2 (4.9 kB view hashes)

Uploaded Source

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