AES-1.0
Original project: http://luaforge.net/projects/aeslua/
aeslua: Lua AES implementation
Copyright (c) 2006,2007 Matthias Hilbig (hilbig@upb.de)
This is a LibStub port of aeslua designed to work for World of Warcraft.
Usage
-----------
local AES = LibStub("AES-1.0");
local encrypted = AES:encrypt("test","test data", AES256, ECBMODE);
print(encrypted);
local decrypted = AES:decrypt("test",encrypted, AES256, ECBMODE);
print(decrypted);
If no key length or mode are specified it will default to AES128 in CBCMODE.
If the decryption fails, the decrypted text will be nil.