Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
- <!-- saved from url=(0042)http://louisdx.github.com/secretsexchange/ -->
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>Secret Exchange</title>
- <link rel="stylesheet" type="text/css" href="./Secret Exchange_files/default.css">
- <script type="text/javascript" src="./Secret Exchange_files/BigInt.js"></script>
- <script type="text/javascript" src="./Secret Exchange_files/sexchange.js"></script>
- </head>
- <body>
- <h1>Secrets Exchange</h1>
- <p>Welcome to the Secrets Exchange!
- <br></br>
- <a href="#send">To send a message, click here!</a>
- <br></br>
- <a href="#recieve">To recieve a message, click here!</a></p>
- <form action="">
- <fieldset>
- <legend><p>Generation data <b>(normal users should not edit this)</b>:</p></legend>
- <table>
- <tbody>
- <tr>
- <th><var>g</var></th>
- <td><input type="text" name="in_g" id="in_g" readonly="readonly"></td>
- <th>(A number that generates a subgroup of the multiplicative group of the field Z/pZ)</th>
- </tr>
- <tr>
- <th><var>p</var></th>
- <td><input type="text" name="in_p" id="in_p" readonly="readonly"></td>
- <th>(Any prime)</th>
- </tr>
- </tbody>
- </table>
- </fieldset>
- </form>
- </br>
- <a name="send"></a>
- <form action="">
- <fieldset>
- <legend>To send a message:</legend>
- <table>
- <tbody>
- <tr>
- <th style="width: 14em;">Step 1:</br>Enter a number</th>
- <td><input type="text" name="in_a" id="in_a"></td>
- <td><input type="button" name="but_rnda" id="but_rnda" value="random"></td>
- <td><input type="button" id="go_a" value="done"></td>
- </tr>
- <tr>
- <th style="width: 14em;">Step 2:</br>Send this to the reciever</th>
- <td><input type="text" name="in_ga" id="in_ga"></td>
- </tr>
- <tr>
- <th style="width: 14em;">Step 3:</br>Paste the reciever's generated number</th>
- <td><input name="in_put_a" id="in_put_a" type="text"></td>
- <td><input type="button" id="but_ra" value="done"></td>
- </tr>
- <tr>
- <th style="width: 14em;">Step 4:</br>Go to the encryption section</th>
- <td><a href="#encrypt">Click to encrypt</a></td>
- </tr>
- </tbody>
- </table>
- </fieldset>
- </form>
- </br>
- <a name="recieve"></a>
- <form action="">
- <fieldset>
- <legend>To recieve a message:</legend>
- <table>
- <tbody>
- <tr>
- <th style="width: 14em;">Step 1:</br>Paste the sender's generated number</th>
- <td><input name="in_put_b" id="in_put_b" type="text"></td>
- <td><input type="button" id="but_rb" value="done"></td>
- </tr>
- <tr>
- <th style="width: 14em;">Step 2:</br>Enter a number</th>
- <td><input type="text" name="in_b" id="in_b"></td>
- <td><input type="button" name="but_rndb" id="but_rndb" value="random"></td>
- <td><input type="button" id="go_b" value="done"></td>
- </tr>
- <tr>
- <th style="width: 14em;">Step 3:</br>Send this to the sender</th>
- <td><input type="text" name="in_gb" id="in_gb"></td>
- </tr>
- <tr>
- <th style="width: 14em;">Step 4:</br>Go to the encryption section</th>
- <td><a href="#encrypt">Click to encrypt</a></td>
- </tr>
- </tbody>
- </table>
- </fieldset>
- </form>
- </br>
- <a name="encrypt"></a>
- <form action="">
- <fieldset>
- <legend>Encrypt/decrypt messages:</legend>
- <table>
- <tbody>
- <tr>
- <th>Send message</th>
- <td><input name="in_pt" id="in_pt" size="50" type="text"></td>
- <td><input type="button" id="go_enc" name="go_enc" value="Encrypt"></td>
- </tr>
- <tr>
- <th>Read message</th>
- <td><input name="in_et" id="in_et" size="50" type="text"></td>
- <td><input type="button" id="go_dec" name="go_dec" value="Decrypt"></td>
- </tr>
- </tbody>
- </table>
- </fieldset>
- </form>
- <div id="chrome_hitahintpanel" style="opacity: 0; display: none; "><input id="chrome_hitahintinput" type="text"></div><div id="chrome_hintswindow"></div><div id="chrome_linksearchpanel" style="opacity: 0; display: none; "><input id="chrome_linksearchinput" type="text"></div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement