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:
rugk 2016-08-11 18:24:13 +02:00
parent 6cb7454d07
commit 4c70a74827

View File

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