Lines Matching defs:secret
299 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
300 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
335 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
336 $pass = auth_decrypt($pass, $secret);
439 * Encrypt data using the given secret using AES
445 * @param string $secret The secret/password that shall be used
449 function auth_encrypt($data, $secret)
453 $cipher->setPassword($secret, 'pbkdf2', 'sha1', 'phpseclib');
471 * @param string $secret The secret/password that shall be used
474 function auth_decrypt($ciphertext, $secret)
478 $cipher->setPassword($secret, 'pbkdf2', 'sha1', 'phpseclib');
1288 $token = md5(auth_randombytes(16)); // random secret