crypt.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <link rel="stylesheet" type="text/css" href="style.css" />
  6. <script type="text/javascript" src="vendors/jsenc/jsencryption.js"></script>
  7. <script type="text/javascript" src="vendors/jsenc/jsencryptionform.js"></script>
  8. </head>
  9. <body onload="load()">
  10. <div id="content" style="position: relative">
  11. <form name="key" action="#" onsubmit="return false;">
  12. <p align="center">
  13. <h3>Secreto (recuerda, es cifrado simétrico; cuanto más largo sea, mejor...)</h3>
  14. <input type="text" name="text" id="passwordText" maxlength="1024" />
  15. <br />
  16. <input type="button" value=" Random " onclick="document.key.text.value = randomPassword(8);" />
  17. &nbsp;
  18. <input type="button" value=" Limpiar " onclick="document.key.text.value = '';" />
  19. &nbsp;
  20. <input type="button" value=" Seleccionar " onclick="document.key.text.select();" />
  21. </p>
  22. </form>
  23. <form name="plain" action="#" onsubmit="return false;">
  24. <p align="center">
  25. <h3>Texto que quieres cifrar</h3>
  26. <textarea name="text" id="plainText" rows="5"></textarea>
  27. <br />
  28. <input type="button" name="Cifrar" value=" Encrypt " onclick="encryptFormText();" />
  29. &nbsp;
  30. <input type="button" value=" Limpiar " onclick="document.plain.text.value = '';" />
  31. &nbsp;
  32. <input type="button" value=" Seleccionar " onclick="document.plain.text.select();" />
  33. </p>
  34. </form>
  35. <form name="cipher" action="#" onsubmit="return false;">
  36. <p align="center">
  37. <h3>Texto cifrado (resultado)</h3>
  38. Cópialo y pégalo para usarlo. Solo quien conozca el secreto podrá abrirlo.<br/>
  39. <textarea name="text" id="cipherText" rows="5"></textarea>
  40. <br />
  41. <input type="button" name="decrypt" value=" Descifrar " onclick="decryptFormText();" />
  42. &nbsp;
  43. <input type="button" value=" Limpiar " onclick="document.cipher.text.value = '';" />
  44. &nbsp;
  45. <input type="button" value=" Seleccionar " onclick="document.cipher.text.select();" />
  46. </p>
  47. </form>
  48. </div>
  49. </body>
  50. </html>