VINDICTA.TOP
Closures · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

getfunctionhash

Returns the SHA-384 hex hash of a Luau function's bytecode.

function getfunctionhash(funcfuncfunctionThe Luau function to hash. Must not be a C closure.: (...any) -> (...any)): stringstringA 96-character lowercase hex string representing the SHA-384 hash of the function's instructions and constants.

Usage

Verify a function has not been hooked
local baseline = getfunctionhash(MyModule.update)

-- Later, after potential tampering...
if getfunctionhash(MyModule.update) ~= baseline then
    warn("MyModule.update has been modified!")
end