// // Copyright 2012 "Leberwurscht" // // This file is dual-licensed under the MIT license (see MIT.txt) and the AGPL license (see jappix/COPYING). // function jappixmini_addon_xor(str1, str2) { if (str1.length != str2.length) throw "not same length"; var encoded = ""; for (var i=0; iRetype your Friendica password for chatting:
'); var input = $('') div.append(input); var button = $(''); div.append(button); $("body").append(div); } button.click(function(){ var password = $("#jappixmini-password-query-input").val(); jappixmini_addon_set_client_secret(password); div.remove(); var 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