Encoding & cryptographyOverview
getfunctionhash
Function fingerprinting API.
Details#
Returns the module's hash representation for a function. Use it as a function fingerprint, not as serialized source or a guarantee that two closures have equal captured state.
Examples#
Example
local function f() return 42 end
print(getfunctionhash(f))