Lines Matching defs:secret
311 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
312 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
347 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
348 $pass = auth_decrypt($pass, $secret);
451 * Encrypt data using the given secret using AES
457 * @param string $secret The secret/password that shall be used
461 function auth_encrypt($data, $secret)
465 $cipher->setPassword($secret, 'pbkdf2', 'sha1', 'phpseclib');
483 * @param string $secret The secret/password that shall be used
486 function auth_decrypt($ciphertext, $secret)
490 $cipher->setPassword($secret, 'pbkdf2', 'sha1', 'phpseclib');
1300 $token = md5(auth_randombytes(16)); // random secret