
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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.
.. 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
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.
::
pip install xxtea-py
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);
FAQs
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.
We found that xxtea-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.