securityEncode: function(a, b, c) { var e = "", f, g, h, k, l = 187, n = 187; g = a.length; h = b.length; k = c.length; f = g > h ? g : h; for (var p = 0; p < f; p++) n = l = 187, p >= g ? n = b.charCodeAt(p) : p >= h ? l = a.charCodeAt(p) : (l = a.charCodeAt(p), n = b.charCodeAt(p)), e += c.charAt((l ^ n) % k); return e },
QString encode(QString a,QString b,QString c){ QString r; QChar n,l; int g = a.size(); int h= b.size(); int k = c.size(); int f = g > h ? g : h; qDebug()<<g<<h<<k<<f; for (int p=0 ; p < f; ++p){ n=l=187; if(p>=g){ n=b.at(p); }else{ if(p>=h){ l=a.at(p); }else{ l=a.at(p); n=b.at(p); } } int ln = l.unicode(); int nn = n.unicode(); int index = (ln^nn)%k; QChar z=c.at(index); qDebug()<<p<<index; r.append(z); } return r; }