Merge 4c70a748272a185b2cdd2dbbd5017796a9b1b03f into a5d91298ff9ca08cb5ff3fd62aa304f378353d5d

This commit is contained in:
rugk 2017-01-01 20:17:13 +00:00 committed by GitHub
commit 36e2ae1d70

View File

@ -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);
}