# csxxteaby.py **Repository Path**: binary5/csxxteaby.py ## Basic Information - **Project Name**: csxxteaby.py - **Description**: 用python实现的C#的xxtea加密解密算法,明文密文都是字符串类型,秘钥不限制长度。 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-08 - **Last Updated**: 2024-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # csxxteaby.py #### Description The following is the Python implementation of the C# xxtea encryption and decryption algorithm, both plaintext and ciphertext are string types, and the key length is unlimited. The code is written in imitation of the C# version of the xxtea tool, and uses int32 lists for encryption and decryption processing internally. It can handle the ciphertext generated by the C# xxtea tool. #### Instructions Download the csxxteaby.py file to the python project directory, import and use it in your own python file. Example code: ```python from csxxteaby import decrypt, encrypt s = encrypt('1234','4321') print(s) print(decrypt(s,'4321')) ```