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

generateSecureKey()

Description

Generates a random string of requested length.

Used to generate initial spider and scramble keys.

Parameters

ColumnTypeDefaultDescription
$length int 64: string { return bin2hexopenssl_random_pseudo_bytes$length / 2; } /** * Check if current page is a modal and set global $modal variable if not already set * * @return boolean true if modal Length of desired string of bytes
otherwise false

Return

string Random character string

This article was last updated 14th July 2024 17:35 Europe/London time based on the source file dated 10th July 2024 11:45 Europe/London time.