function jappixmini_addon_xor(str1, str2) { if (str1.length != str2.length) throw "not same length"; encoded = ""; for (i=0; iRetype your Friendica password for chatting:
'); input = $('') div.append(input); button = $(''); div.append(button); $("body").append(div); } button.click(function(){ password = $("#jappixmini-password-query-input").val(); jappixmini_addon_set_client_secret(password); div.remove(); client_secret = getPersistent('jappix-mini', 'client-secret'); callback(client_secret); }); } else { callback(client_secret); } } function jappixmini_addon_encrypt_password(password, callback) { jappixmini_addon_get_client_secret(function(client_secret){ // add \0 to password until it has the same length as secret if (password.length>client_secret.length-1) throw "password too long"; while (password.length