Skip to main content

Wiki

Tiny Encryption Algorithm (TEA)

Installation

pip install PyTEA

Usage

from pytea import TEA
key = os.urandom(16)
print('key is', key)
content = 'Hello, 你好'
tea = TEA(key)
e = tea.encrypt(content.encode())
print('encrypt hex:', e.hex())
d = tea.decrypt(e)
print('decrypt:', d.decode())

Download files

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

Source Distribution

PyTEA-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file PyTEA-0.1.2.tar.gz.

File metadata

  • Download URL: PyTEA-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.1

File hashes

Hashes for PyTEA-0.1.2.tar.gz
Algorithm Hash digest
SHA256 afd64d2cd516c12253edc716a588aa08ddaddb526216f887f612160ed2843b3f
MD5 2e2f6ea7af9ec8247a23d90bc4676582
BLAKE2b-256 25a10803654e394be2e0aa8f0da30edc6e11b9c83dc05af2c92ef4ee8b754ecb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 file

0.1.1

1 file

0.1.0

1 file

0.0.1

1 file

Supported by

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