mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-04-20 15:45:49 -04:00
Merge 4c70a748272a185b2cdd2dbbd5017796a9b1b03f into a5d91298ff9ca08cb5ff3fd62aa304f378353d5d
This commit is contained in:
commit
36e2ae1d70
@ -498,7 +498,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