mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
Password input id change in zerobin.js
This commit is contained in:
parent
eadcd60e14
commit
0198371049
|
@ -116,7 +116,7 @@ function decompress(data) {
|
|||
* @return encrypted string data
|
||||
*/
|
||||
function zeroCipher(key, message) {
|
||||
if ($('input#password').val().length == 0) {
|
||||
if ($('input#passwordinput').val().length == 0) {
|
||||
return sjcl.encrypt(key, compress(message));
|
||||
}
|
||||
return sjcl.encrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash($("input#passwordinput").val())), compress(message));
|
||||
|
|
Loading…
Reference in New Issue
Block a user