md5里的方法:
C:WindowsSystem32>lua Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio > require("md5"); > for k,v in pairs(md5) do print(k,v); end crypt function: 0073DEC8 sumhexa function: 0073D778 _PACKAGE exor function: 0073DE88 _VERSION MD5 1.1.2 sum function: 00737458 _COPYRIGHT Copyright (C) 2003 PUC-Rio decrypt function: 0073DF08 _M table: 0073D5C0 _NAME md5 _DESCRIPTION Basic cryptographic facilities >
加密:
require("md5") y = md5.sumhexa("admin") print(y)加密结果:21232f297a57a5a743894a0e4a801fc3
cmd5解密结果: