54 function get($raw =
false) {
62 if ($secret[0] ===
'z') {
64 $base64 = strtr(substr($secret, 1),
'-_',
'+/');
65 $key = base64_decode($base64);
72 return hex2bin($secret);
90 if ($secret[0] !==
'z') {
91 $rand_max = getrandmax();
92 if ($rand_max < pow(2, 16)) {
95 if ($rand_max < pow(2, 32)) {
init()
Initialise the site secret (32 bytes: "z" to indicate format + 186-bit key in Base64 URL)...
init_site_secret()
Initialise the site secret (32 bytes: "z" to indicate format + 186-bit key in Base64 URL)...
getStrength()
Get the strength of the site secret.
get_site_secret()
Returns the site secret.