mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-04-20 23:46:31 -04:00
Allow space passwords
Also removes the strange `|| ''`. I don't know what this piece of code should actually do. Sometimes imple solutions are just best.
This commit is contained in:
parent
6cb7454d07
commit
4c70a74827
@ -493,7 +493,7 @@ $(function() {
|
||||
{
|
||||
// Galois Counter Mode, keysize 256 bit, authentication tag 128 bit
|
||||
var options = {mode: 'gcm', ks: 256, ts: 128};
|
||||
if ((password || '').trim().length === 0)
|
||||
if (password.length === 0)
|
||||
{
|
||||
return sjcl.encrypt(key, this.compress(message), options);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user