Advertisement
Guest User

html

a guest
Dec 21st, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  2. <!-- saved from url=(0042)http://louisdx.github.com/secretsexchange/ -->
  3. <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  4. <title>Secret Exchange</title>
  5.  
  6. <link rel="stylesheet" type="text/css" href="./Secret Exchange_files/default.css">
  7. <script type="text/javascript" src="./Secret Exchange_files/BigInt.js"></script>
  8. <script type="text/javascript" src="./Secret Exchange_files/sexchange.js"></script>
  9. </head>
  10.  
  11. <body>
  12.  
  13. <h1>Secrets Exchange</h1>
  14.  
  15. <p>Welcome to the Secrets Exchange!
  16. <br></br>
  17. <a href="#send">To send a message, click here!</a>
  18. <br></br>
  19. <a href="#recieve">To recieve a message, click here!</a></p>
  20.  
  21.  
  22. <form action="">
  23. <fieldset>
  24. <legend><p>Generation data <b>(normal users should not edit this)</b>:</p></legend>
  25. <table>
  26. <tbody>
  27. <tr>
  28. <th><var>g</var></th>
  29. <td><input type="text" name="in_g" id="in_g" readonly="readonly"></td>
  30. <th>(A number that generates a subgroup of the multiplicative group of the field Z/pZ)</th>
  31. </tr>
  32. <tr>
  33. <th><var>p</var></th>
  34. <td><input type="text" name="in_p" id="in_p" readonly="readonly"></td>
  35. <th>(Any prime)</th>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </fieldset>
  40. </form>
  41.  
  42. </br>
  43.  
  44. <a name="send"></a>
  45. <form action="">
  46. <fieldset>
  47. <legend>To send a message:</legend>
  48. <table>
  49. <tbody>
  50. <tr>
  51. <th style="width: 14em;">Step 1:</br>Enter a number</th>
  52. <td><input type="text" name="in_a" id="in_a"></td>
  53. <td><input type="button" name="but_rnda" id="but_rnda" value="random"></td>
  54. <td><input type="button" id="go_a" value="done"></td>
  55. </tr>
  56. <tr>
  57. <th style="width: 14em;">Step 2:</br>Send this to the reciever</th>
  58. <td><input type="text" name="in_ga" id="in_ga"></td>
  59. </tr>
  60. <tr>
  61. <th style="width: 14em;">Step 3:</br>Paste the reciever's generated number</th>
  62. <td><input name="in_put_a" id="in_put_a" type="text"></td>
  63. <td><input type="button" id="but_ra" value="done"></td>
  64. </tr>
  65. <tr>
  66. <th style="width: 14em;">Step 4:</br>Go to the encryption section</th>
  67. <td><a href="#encrypt">Click to encrypt</a></td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. </fieldset>
  72. </form>
  73.  
  74. </br>
  75.  
  76. <a name="recieve"></a>
  77. <form action="">
  78. <fieldset>
  79. <legend>To recieve a message:</legend>
  80. <table>
  81. <tbody>
  82. <tr>
  83. <th style="width: 14em;">Step 1:</br>Paste the sender's generated number</th>
  84. <td><input name="in_put_b" id="in_put_b" type="text"></td>
  85. <td><input type="button" id="but_rb" value="done"></td>
  86. </tr>
  87. <tr>
  88. <th style="width: 14em;">Step 2:</br>Enter a number</th>
  89. <td><input type="text" name="in_b" id="in_b"></td>
  90. <td><input type="button" name="but_rndb" id="but_rndb" value="random"></td>
  91. <td><input type="button" id="go_b" value="done"></td>
  92. </tr>
  93. <tr>
  94. <th style="width: 14em;">Step 3:</br>Send this to the sender</th>
  95. <td><input type="text" name="in_gb" id="in_gb"></td>
  96. </tr>
  97. <tr>
  98. <th style="width: 14em;">Step 4:</br>Go to the encryption section</th>
  99. <td><a href="#encrypt">Click to encrypt</a></td>
  100. </tr>
  101. </tbody>
  102. </table>
  103. </fieldset>
  104. </form>
  105.  
  106. </br>
  107.  
  108. <form action="">
  109. <fieldset>
  110. <legend>The shared secret <b>(Generated after completing steps)</b>:</legend>
  111. <table>
  112. <tbody>
  113. <td><input type="text" name="out_gab" id="out_gab"></td>
  114. </tbody>
  115. </table>
  116. </fieldset>
  117. </form>
  118.  
  119. <a name="encrypt"></a>
  120. <form action="">
  121. <fieldset>
  122. <legend>Encrypt/decrypt messages:</legend>
  123. <table>
  124. <tbody>
  125. <tr>
  126. <th>Send message</th>
  127. <td><input name="in_pt" id="in_pt" size="50" type="text"></td>
  128. <td><input type="button" id="go_enc" name="go_enc" value="Encrypt"></td>
  129. </tr>
  130. <tr>
  131. <th>Read message</th>
  132. <td><input name="in_et" id="in_et" size="50" type="text"></td>
  133. <td><input type="button" id="go_dec" name="go_dec" value="Decrypt"></td>
  134. </tr>
  135. </tbody>
  136. </table>
  137. </fieldset>
  138. </form>
  139.  
  140. <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