在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):xxtea/xxtea-lua开源软件地址(OpenSource Url):https://github.com/xxtea/xxtea-lua开源编程语言(OpenSource Language):C 91.9%开源软件介绍(OpenSource Introduction):XXTEA for LuaIntroductionXXTEA 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. Installationluarocks install xxtea Usagelocal 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 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论