Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

sign_code()

Description

Returns a signature for a given block of code.

Parameters

ColumnTypeDefaultDescription
$code string The code to sign

Return

string The signature

Location

include/encryption_functions.php lines 122 to 126

Definition

 
function sign_code($code)
    {
    global 
$scramble_key;
    return 
hash_hmac("sha256",trim($code),$scramble_key);
    }

This article was last updated 21st May 2024 12:05 Europe/London time based on the source file dated 23rd February 2024 17:00 Europe/London time.