xxtea / xxtea-lua Goto Github PK
View Code? Open in Web Editor NEWXXTEA encryption algorithm library for Lua.
License: MIT License
XXTEA encryption algorithm library for Lua.
License: MIT License
首先感谢开源xxtea-lua
我在openresty中使用xxtea.decrypt时,会出现“worker process 63 exited on signal 11”
openresty的版本是: 1.13.6.1
运行环境在 Docker中,使用的镜像是 openresty/openresty:alpine
我安装xxtea.so,是使用luarocks install xxtea
再次感谢
Hello! It appears that key data is treated as a zero-terminated string by your library which makes it impossible to use '\0' as part of a key.
local xxtea = require 'xxtea'
local function hexdump(s)
print((s:gsub('.', function (c) return ('%02x '):format(c:byte()) end)))
end
local s = 'abc'
hexdump(xxtea.encrypt(s, '\0'))
hexdump(xxtea.encrypt(s, '\0abc'))
hexdump(xxtea.encrypt(s, '\0\1\2\3'))
Output:
3a 07 00 f5 2f f1 76 79
3a 07 00 f5 2f f1 76 79
3a 07 00 f5 2f f1 76 79
小马哥,你好,我是一个lua的使用者,我想直接调用你的xxtea中函数,需要导入src文件里的三个c文件。我按照网上的教程将它们放在我的项目目录或是打包成so文件,也不能调用成功。小马哥,你能教教我怎么引入吗?应该放在那个目录下或是怎么打包?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.