switching from CCM to GCM, resolves #27

This commit is contained in:
El RIDO
2016-07-09 21:11:39 +02:00
parent 5586cb6777
commit ad9fdf8892
2 changed files with 5 additions and 4 deletions

View File

@@ -446,9 +446,9 @@ $(function() {
{
if ((password || '').trim().length == 0)
{
return sjcl.encrypt(key, this.compress(message));
return sjcl.encrypt(key, this.compress(message), {mode : 'gcm'});
}
return sjcl.encrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(password)), this.compress(message));
return sjcl.encrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(password)), this.compress(message), {mode : 'gcm'});
},
/**