MD5 calculation for Lua