Metadata-Version: 1.1
Name: xxtea-py
Version: 1.0.2
Summary: 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.
Home-page: https://github.com/xxtea/xxtea-python
Author: Ma Bingyao
Author-email: mabingyao@gmail.com
License: MIT
Description: XXTEA for Python
        ================
        
        .. image:: https://travis-ci.org/xxtea/xxtea-python.svg?branch=master
           :target: https://travis-ci.org/xxtea/xxtea-python
        
        .. image:: https://img.shields.io/pypi/v/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        .. image:: https://img.shields.io/pypi/l/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        .. image:: https://img.shields.io/pypi/pyversions/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        .. image:: https://img.shields.io/pypi/implementation/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        .. image:: https://img.shields.io/pypi/status/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        .. image:: https://img.shields.io/pypi/dm/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        .. image:: https://img.shields.io/pypi/dw/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        .. image:: https://img.shields.io/pypi/dd/xxtea-py.svg
           :target: https://pypi.python.org/pypi/xxtea-py
        
        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:
        
        .. code-block:: python
        
            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:
        
        .. code-block:: python
        
            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);
        
Keywords: xxtea crypt encrypt decrypt xtea tea
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: OS Independent
