CRX_ENCRYPT_FUNCTION - Legacy Macros

Deprecated — Legacy Cortex Engine Only: CRX_ENCRYPT_FUNCTION is strictly for the Legacy (Cortex) build preset. For normal/standard builds, use Centurion scoped encryption from their documentation.

CRX_ENCRYPT_FUNCTION Scoped String Protection

Form: call (aliases: CRX_ENCFUNC, LPH_ENCFUNC). Recursively scans the AST of a function and encrypts all enclosed string literals without requiring individual string annotations.

Why Use It: Bulk Module Encryption

Conveniently protects complex authentication routines or sensitive networking blocks containing dozens of strings without annotating each line individually.

-- Legacy Cortex Build
local authenticate = CRX_ENCRYPT_FUNCTION(function(token)
    if token == "valid_token" then
        return true, "Authenticated successfully"
    end
    return false, "Invalid credential"
end)