Yuari
Documentation
Docs/Crypt/getfunctionhash

getfunctionhash

Returns a function hash.

Syntax

getfunctionhash(function: function) -> string

Parameters

ParameterTypeDescription
functionfunctionThe function or callback to use.

Returns

TypeDescription
stringA 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.