Home > luaxxtea

luaxxtea

Luaxxtea is a project mainly written in C, it's free.

xxtea encryption for lua

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

Previous:multiplex