Collections functions
General functions
Render functions
Theme permission 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 124 to 128

Definition

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

This article was last updated 4th October 2022 18:35 Europe/London time based on the source file dated 30th June 2022 16:25 Europe/London time.