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 19th March 2024 03:05 Europe/London time based on the source file dated 11th March 2024 11:40 Europe/London time.