cocos luacompile -s /Users/hlsb/Documents/nnRoom/src -d /Users/hlsb/Documents/iossrc -e -k 2dxLua -b NNROOM --disable-compile


/Users/hlsb/Documents/nnRoom/src 初始路径

/Users/hlsb/Documents/iossrc 加密后的路径

2dxLua  key值

NNROOM   sign值

使用该命令加密后需要在C++调用:

LuaStack* stack = engine->getLuaStack();

stack->setXXTEAKeyAndSign("2dxLua", strlen("2dxLua"), "NNROOM", strlen("NNROOM"));