diff --git a/js/privatebin.js b/js/privatebin.js index 4344efca..d1fd16ef 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -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); }