Download Luar/moonloader/libstd/md5.lua from andy-gg/LUAR_RP_PC: direct link, hf CLI and curl.
- Browser
- Download file 836 Bytes
-
https://huggingface.co/datasets/andy-gg/LUAR_RP_PC/resolve/main/Luar/moonloader/libstd/md5.lua
- Command line
-
hf download hf://datasets/andy-gg/LUAR_RP_PC/Luar/moonloader/libstd/md5.lua
-
curl -L -o md5.lua https://huggingface.co/datasets/andy-gg/LUAR_RP_PC/resolve/main/Luar/moonloader/libstd/md5.lua
836 Bytes
| ---------------------------------------------------------------------------- | |
| -- $Id: md5.lua,v 1.4 2006/08/21 19:24:21 carregal Exp $ | |
| ---------------------------------------------------------------------------- | |
| local core | |
| local string = string or require"string" | |
| if string.find(_VERSION, "Lua 5.0") then | |
| local cpath = os.getenv"LUA_CPATH" or "/usr/local/lib/lua/5.0/" | |
| core = loadlib(cpath.."md5/core.so", "luaopen_md5_core")() | |
| else | |
| core = require"md5.core" | |
| end | |
| ---------------------------------------------------------------------------- | |
| -- @param k String with original message. | |
| -- @return String with the md5 hash value converted to hexadecimal digits | |
| function core.sumhexa (k) | |
| k = core.sum(k) | |
| return (string.gsub(k, ".", function (c) | |
| return string.format("%02x", string.byte(c)) | |
| end)) | |
| end | |
| return core | |