/luaxxtea

xxtea encryption for lua

Primary LanguageC

This is libray of http://en.wikipedia.org/wiki/XXTEA for lua for very simple encryption.

Compile in gcc with

gcc --shared -fPIC -O2 -o xxtea.so xxtea.c

Use in lua

require'xxtea'
str = 'something'
key = 'abcd1234abcd1234'
encstr = xxtea.encrypt( str, key )
decstr = xxtea.decrypt( encstr, key )


where the key is a 128 bit hex string