Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple and fast symmetric-key algorithm cipher

Project Description

Simple and fast symmetric-key algorithm cipher

Reference:

>>> tea_encrypt(b'barbecue', b'good for nothing')
b'\xa38\x82\xb7\xc6\xa6\xa8c'
>>> tea_decrypt(b'\xa38\x82\xb7\xc6\xa6\xa8c', b'good for nothing')
b'barbecue'

>>> xtea_encrypt(b'american', b'vegetable garden')
b'\x8c\x14\xa5\xab\x1b\n\xc4\xf0'
>>> xtea_decrypt(b'\x8c\x14\xa5\xab\x1b\n\xc4\xf0', b'vegetable garden')
b'american'

Installation:

# from GitHub:
git clone git://github.com/amezoure/tea_cipher.git
cd tea_cipher && python setup.py install

# or just from PyPI:
pip install tea_cipher

Properties:

TEA has a few weaknesses. Most notably, it suffers from equivalent keys-each key is equivalent to three others, which means that the effective key size is only 126 bits. As a result, TEA is especially bad as a cryptographic hash function. TEA is also susceptible to a related-key attack which requires 1 << 23 chosen plaintexts under a related-key pair, with 1 << 32 time complexity. Because of these weaknesses, the XTEA cipher was designed.

Release History

Release History

This version
History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tea_cipher-0.3.3-py2.py3-none-any.whl (4.3 kB) Copy SHA256 Checksum SHA256 3.6 Wheel Jul 29, 2017
tea_cipher-0.3.3.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Jul 29, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting