getfunctionhash
Returns a function hash.
Syntax
getfunctionhash(function: function) -> string
Parameters
| Parameter | Type | Description |
|---|---|---|
function | function | The function or callback to use. |
Returns
| Type | Description |
|---|---|
string | A function hash |
Description
getfunctionhash is part of the Crypt library. Crypt functions process data locally. Keys, hashes and encrypted buffers remain inside the process.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
print(getfunctionhash(print))
Notes
- Never log keys or decrypted buffers in production scripts.