# 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 #### 介绍 用 python 实现的 C# 的 xxtea 加密解密算法,明文密文都是字符串类型,秘钥不限制长度。 代码是仿照 C# 版的 xxtea 工具编写的,内部使用 int32 列表来进行加密解密处理。可以处理由 C#xxtea 生成的密文。 #### 使用说明 将 csxxteaby.py 文件下载到 python 工程目录,在自己的 python 文件内导入并使用。 示例代码: ```python from csxxteaby import decrypt, encrypt s = encrypt('1234','4321') print(s) print(decrypt(s,'4321')) ```