소스 검색

Password input id change in zerobin.js

Hexalyse 11 년 전
부모
커밋
eadcd60e14
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      js/zerobin.js

+ 1 - 1
js/zerobin.js

@@ -119,7 +119,7 @@ function zeroCipher(key, message) {
     if ($('input#password').val().length == 0) {
         return sjcl.encrypt(key, compress(message));
     }
-    return sjcl.encrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash($("input#password").val())), compress(message));
+    return sjcl.encrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash($("input#passwordinput").val())), compress(message));
 }
 
 /**