mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-23 21:45:03 -04:00
slight configuration changes, template modifications to make discussions
and password configurable, removed generated configuration test as it grows quite big and a new one can be generated easily if needed
This commit is contained in:
parent
0198371049
commit
d3c4600806
10 changed files with 184 additions and 17384 deletions
|
@ -134,7 +134,7 @@ function zeroDecipher(key, data) {
|
|||
try {
|
||||
return decompress(sjcl.decrypt(key, data));
|
||||
} catch (err) {
|
||||
var password = prompt("Please enter the password for this paste.", "");
|
||||
var password = prompt("Please enter the password for this paste:", "");
|
||||
return decompress(sjcl.decrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(password)), data));
|
||||
}
|
||||
}
|
||||
|
@ -423,7 +423,7 @@ function stateNewPaste() {
|
|||
$('#discussion').addClass('hidden');
|
||||
$('#prettymessage').addClass('hidden');
|
||||
// Show password field
|
||||
$('#password').show();
|
||||
$('#password').removeClass('hidden');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue