diff options
-rw-r--r-- | js/crypto.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/crypto.js b/js/crypto.js index 6970229ce..702ebd0e1 100644 --- a/js/crypto.js +++ b/js/crypto.js @@ -59,7 +59,9 @@ function red_encrypt(alg, elem,text) { newdiv = "[crypt alg='aes256' hint='" + enc_hint + "']" + encrypted + '[/crypt]'; } - alert(newdiv); + enc_key = ''; + +// alert(newdiv); $(elem).val(newdiv); @@ -87,6 +89,8 @@ function red_decrypt(alg,hint,text,elem) { enc_text = CryptoJS.AES.decrypt(text,enc_key); } + enc_key = ''; + // Not sure whether to drop this back in the conversation display. // It probably needs a lightbox or popup window because any conversation // updates could |