$keys = explode('>,', $f);
            echo 'public key,' . $keys[4] . ',' . $keys[10] . ',' . $keys[6] . ',' . $digits . ',';
            exit;
        }
    }
    echo 'not found,,,,';
    exit;
}
if (isset($_GET['setkey'])) {
    $rc4key = RSAdecrypt($_GET['setkey'], $_GET['n']);
    $name = hash('sha256', $_GET['n']);
    if (file_exists('temp/bigprimes' . $name . '.php')) {
        if (strpos(file_get_contents('temp/bigprimes' . $name . '.php'), '>,rc4>,') === false) {
            file_put_contents('temp/bigprimes' . $name . '.php', $rc4key . '>,rc4>,', FILE_APPEND);
            $t = explode('>,', file_get_contents('temp/bigprimes' . $name . '.php'));
            $t[12] = decryptFromClient($_GET['b']);
            file_put_contents('temp/bigprimes' . $name . '.php', implode('>,', $t));
            echo encryptToClient('encryption_secured');
            exit;
        }
    }
    echo 'no,,,,';
    exit;
}
// AJAX GET functions ===========================================================
// Handshake to validate session use
if (isset($_GET['serverhandshake'])) {
    session_start();
    $_SESSION['JL_ses'] = $_GET['serverhandshake'];
    echo 'pollo Jerry\'s library Jan 8, 2014';
    exit;
        }
        session_start();
        foreach ($_SESSION as $n => $v) {
            $out .= 'SESSION: ' . $n . '=' . $v . '<br>';
        }
    }
    $out .= 'elapsed time ' . floor((microtime(true) - $tm) * 1000) . ' milliseconds<br><br>';
    echo $out;
    exit;
}
// AJAX encryption
if (isset($_POST['encrypted']) || isset($_GET['testRememberMe'])) {
    include 'jerrysLibrary.php';
    $decrypted = decryptFromClient($_POST['encrypted']);
    if (isset($_GET['testRememberMe'])) {
        $decrypted = decryptFromClient($_GET['testRememberMe']);
    }
    $out = 'The message that was sent to the server:<br><span style="font-size:0.25em;"><br></span><b>';
    $out .= $decrypted . '</b><br><br>';
    $out .= 'This message was encrypted before being sent. This is the encrypted message which the server received:<br><span style="font-size:0.25em;"><br></span><b>';
    $out .= $_POST['encrypted'] . $_GET['testRememberMe'] . '</b><br><br>';
    $out .= 'PHP can now do something with it.  Respond to it.  In this example all the text you are reading in this div is the response. Before the response is sent back it must be encrypted again:<br><span style="font-size:0.25em;"><br></span><b>';
    $enc = encryptToClient($out);
    $out .= str_replace('<', '&lt', encryptToClient($enc)) . '</b><br><br>';
    $out .= 'The client then decrypts which re-produces the whole message you are reading right now.';
    echo encryptToClient($out);
    exit;
}
//redacted  comment handler
$message = '';
if (file_exists('comments.php') && true) {