Lua脚本文件的加密解密研究
Research of Lua scripting encrypt and decrypt
-
摘要: 针对开源Lua脚本没有提供任何安全机制的问题,采用AES算法和Sha256算法,将其加密和解密函数封装在动态链接库中,通过调用动态链接库中封装的入口函数,实现了更安全的Lua脚本.将Lua调用动态链接库的加密速度与其他加密方法进行比较,结果表明本文提供的方法,其加密的速度更快.Abstract: Aiming at the problem that open Lua scripting has no security mechanism,the encrypt and decrypt functions are loaded into dynamic linking library(DLL) using ASE and Sha256 algorithms,the import function within DLL is called in the Lua scripting.It was indicated by testing that the encrypted Lua scripting is more secure than the original one.In addition,the encrypt speed of Lua calling DLL is compared with that of other method,and the results showed that the former is greatly improved in the speed of encrypt.
-
Key words:
- Lua scripting /
- AES algorithm /
- Sha256 algorithm /
- dynamic linking library(DLL) /
- encrypt /
- decrypt
-
-
[1]
Kurt Jung, Aaron Brown.Beginning hla Programming[M].Indianapolis:Wiley Publishing,2007.
-
[2]
谷大武.高级加密标准(AES)算法——Rijndael的设计[M].北京:清华大学出版社,2003.
-
[3]
张景文.基于AES加密算法的数据文件安全策略与实现[J].电脑与信息技术,2010,18(4):25.
-
[4]
邓正阳,陈和平,苏鹏.动态脚本语言Lua与C++交互方法的研究与实现[J].计算机系统应用,2010(5):198.
-
[5]
石琦.Lua在自动测试中的应用[J].自动化技术与应用,2009(12):31.
-
[1]
计量
- PDF下载量: 41
- 文章访问数: 1168
- 引证文献数: 0