2 -- (you should put this file in any directory of your LUA_PATH)
5 -- change the next line to point to the md5 dynamic library
7 -- local path = "/usr/local/lua/lib/libmd5.so"
8 --local path = "./libmd5.so"
10 --assert(loadlib(path, "luaopen_md5"))()
13 -- Returns the md5 hash value as a string of hexadecimal digits
15 function md5
.sumhexa (k
)
17 return (string.gsub(k
, ".", function (c
)
18 return string.format("%02x", string.byte(c
))