Skip to content

Instantly share code, notes, and snippets.

View Earu's full-sized avatar

Ryan Earu

View GitHub Profile
@Python1320
Python1320 / hex.lua
Last active June 19, 2022 21:11
HMAC-SHA256 for GMod (no binary modules)
-- bootstrap slow version
function string.tohex(str)
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c))
end))
end
-- caching fast versions