Elgg
Version 1.11
|
Public Member Functions | |
init () | |
Initialise the site secret (32 bytes: "z" to indicate format + 186-bit key in Base64 URL). More... | |
get ($raw=false) | |
Returns the site secret. More... | |
getStrength () | |
Get the strength of the site secret. More... | |
Definition at line 22 of file SiteSecret.php.
Elgg\Database\SiteSecret::get | ( | $raw = false | ) |
Returns the site secret.
Used to generate difficult to guess hashes for sessions and action tokens.
bool | $raw | If true, a binary key will be returned |
Definition at line 54 of file SiteSecret.php.
Elgg\Database\SiteSecret::getStrength | ( | ) |
Get the strength of the site secret.
If "weak" or "moderate" is returned, this assumes we're running on the same system that created the key.
Definition at line 88 of file SiteSecret.php.
Elgg\Database\SiteSecret::init | ( | ) |
Initialise the site secret (32 bytes: "z" to indicate format + 186-bit key in Base64 URL).
Used during installation and saves as a datalist.
Note: Old secrets were hex encoded.
Definition at line 34 of file SiteSecret.php.