/**
  * Test for AuthenticationConfig::cookieDecrypt
  *
  * @return void
  */
 public function testCookieDecrypt()
 {
     $this->object->setIV('testiv09testiv09');
     // works with the openssl extension active or inactive
     $this->assertEquals('data123', $this->object->cookieDecrypt('+coP/up/ZBTBwbiEpCUVXQ==', 'sec321'));
 }
    }
    /**
     * Sets encryption IV to use
     *
     * @param string $vector The IV
     *
     * @return void
     */
    public function setIV($vector)
    {
        $this->_cookie_iv = $vector;
    }
    /**
     * Callback when user changes password.
     *
     * @param string $password New password to set
     *
     * @return void
     */
    public function handlePasswordChange($password)
    {
        $this->storePasswordCookie($password);
    }
}
/**
 * phpseclib
 */
if (!AuthenticationCookie::useOpenSSL()) {
    include PHPSECLIB_INC_DIR . '/Crypt/AES.php';
    include PHPSECLIB_INC_DIR . '/Crypt/Random.php';
}