Lines Matching defs:secret
287 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
288 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
323 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
324 $pass = auth_decrypt($pass, $secret);
427 * Encrypt data using the given secret using AES
433 * @param string $secret The secret/password that shall be used
437 function auth_encrypt($data, $secret)
441 $cipher->setPassword($secret, 'pbkdf2', 'sha1', 'phpseclib');
459 * @param string $secret The secret/password that shall be used
462 function auth_decrypt($ciphertext, $secret)
466 $cipher->setPassword($secret, 'pbkdf2', 'sha1', 'phpseclib');
1276 $token = md5(auth_randombytes(16)); // random secret