# xxtea-lua **Repository Path**: leonsound/xxtea-lua ## Basic Information - **Project Name**: xxtea-lua - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-03 - **Last Updated**: 2024-08-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # XXTEA for Lua XXTEA logo ## Introduction XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Lua. 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 ```sh luarocks install xxtea ``` ## Usage ```lua local xxtea = require("xxtea"); local text = "Hello World! 你好,中国!"; local key = "1234567890"; local encrypt_data = xxtea.encrypt(text, key); local decrypt_data = xxtea.decrypt(encrypt_data, key); if text == decrypt_data then print("success!\n"); else print("fail!\n"); end ```