|
@@ -443,7 +443,7 @@ $(function() {
|
|
|
*/
|
|
*/
|
|
|
cipher: function(key, password, message)
|
|
cipher: function(key, password, message)
|
|
|
{
|
|
{
|
|
|
- password = password.trim();
|
|
|
|
|
|
|
+ password = (password || '').trim();
|
|
|
if (password.length == 0)
|
|
if (password.length == 0)
|
|
|
{
|
|
{
|
|
|
return sjcl.encrypt(key, this.compress(message));
|
|
return sjcl.encrypt(key, this.compress(message));
|