changeset 2:e5df7c795457 default tip

Put password field in a form so that it can be saved by Firefox.
author Atul Varma <varmaa@toolness.com>
date Tue, 07 Apr 2009 23:41:34 -0700
parents ecf3376d2a5a
children
files static-files/encryptobin.js static-files/index.html
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/static-files/encryptobin.js	Tue Apr 07 16:21:25 2009 -0700
+++ b/static-files/encryptobin.js	Tue Apr 07 23:41:34 2009 -0700
@@ -36,8 +36,8 @@
 $(window).ready(
   function() {
     var BITS = 256;
-    if ($("#pass").val()) {
-      var crypto = new AESCrypto($("#pass").val(), BITS);
+    if ($("#password").val()) {
+      var crypto = new AESCrypto($("#password").val(), BITS);
       var bin = new EncryptoBin(window.location.hash.slice(1),
                                 crypto);
 
--- a/static-files/index.html	Tue Apr 07 16:21:25 2009 -0700
+++ b/static-files/index.html	Tue Apr 07 23:41:34 2009 -0700
@@ -6,12 +6,14 @@
   <title>EncryptoBin</title>
 </head>
 <body>
+<form action="" method="get">
 <p>
-  pass <input type="text" id="pass"/>
+  secret <input type="password" id="password"/>
 </p>
 <p>
   <textarea rows="40" cols="40" id="plaintext"></textarea>
 </p>
+</form>
 </body>
 <script src="jquery.js"></script>
 <script src="aes.js"></script>