summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-04 04:27:46 +0000
committerausiv4 <ausiv4@eb105b4a-77de-11de-a249-6bf219df57d5>2009-08-04 04:27:46 +0000
commitca28a1b9dccdd1037714bb238cffa86db302ab5c (patch)
treef586e05c090f33635d00d2520bc6a642c1abfedf
parent7a774b6813804c945846ef9837161a523dff77c8 (diff)
Now the import_hashes function checks to see whether the srp file is packed or not, and loads the packed or unpacked hash files accordingly.
It occurs to me that perhaps all of the hash functions should be put into a single object to reduce namespace pollution.
-rw-r--r--javascript/jsPacker/srp.min.js2
-rw-r--r--javascript/srp.js25
2 files changed, 22 insertions, 5 deletions
diff --git a/javascript/jsPacker/srp.min.js b/javascript/jsPacker/srp.min.js
index d5fe5dd..6e18207 100644
--- a/javascript/jsPacker/srp.min.js
+++ b/javascript/jsPacker/srp.min.js
@@ -1 +1 @@
-eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('E 1F(s){C 2p=8;C 70=0;E 1e(x,y){C 4b=(x&4a)+(y&4a);C 7b=(x>>16)+(y>>16)+(4b>>16);F(7b<<16)|(4b&4a)}E S(X,n){F(X>>>n)|(X<<(32-n))}E R(X,n){F(X>>>n)}E 76(x,y,z){F((x&y)^((~x)&z))}E 74(x,y,z){F((x&y)^(x&z)^(y&z))}E 75(x){F(S(x,2)^S(x,13)^S(x,22))}E 77(x){F(S(x,6)^S(x,11)^S(x,25))}E 78(x){F(S(x,7)^S(x,18)^R(x,3))}E 7a(x){F(S(x,17)^S(x,19)^R(x,10))}E 6W(m,l){C K=V 1y(b0,aZ,aY,aX,aW,aV,aU,aT,aS,aR,aQ,aP,aO,aN,aM,aL,aK,aJ,aI,aH,aG,aF,aE,aD,aC,aB,aA,az,ay,ax,aw,av,au,at,as,ar,aq,ap,ao,an,al,ak,aj,ai,ah,ag,af,ae,ad,ab,aa,a9,a8,a7,a6,a5,a4,a3,a2,a1,a0,9Z,9Y,9X);C 1a=V 1y(9W,9V,9U,9T,9S,9R,9Q,9P);C W=V 1y(64);C a,b,c,d,e,f,g,h,i,j;C 3k,49;m[l>>5]|=2J<<(24-l%32);m[((l+64>>9)<<4)+15]=l;P(C i=0;i<m.T;i+=16){a=1a[0];b=1a[1];c=1a[2];d=1a[3];e=1a[4];f=1a[5];g=1a[6];h=1a[7];P(C j=0;j<64;j++){D(j<16)W[j]=m[j+i];J W[j]=1e(1e(1e(7a(W[j-2]),W[j-7]),78(W[j-15])),W[j-16]);3k=1e(1e(1e(1e(h,77(e)),76(e,f,g)),K[j]),W[j]);49=1e(75(a),74(a,b,c));h=g;g=f;f=e;e=1e(d,3k);d=c;c=b;b=a;a=1e(3k,49)}1a[0]=1e(a,1a[0]);1a[1]=1e(b,1a[1]);1a[2]=1e(c,1a[2]);1a[3]=1e(d,1a[3]);1a[4]=1e(e,1a[4]);1a[5]=1e(f,1a[5]);1a[6]=1e(g,1a[6]);1a[7]=1e(h,1a[7])}F 1a}E 6V(1M){C 46=1y();C 72=(1<<2p)-1;P(C i=0;i<1M.T*2p;i+=2p){46[i>>5]|=(1M.20(i/2p)&72)<<(24-i%32)}F 46}E 6Y(2o){2o=2o.9O(/\\r\\n/g,"\\n");C 1Q="";P(C n=0;n<2o.T;n++){C c=2o.20(n);D(c<3j){1Q+=2r.2q(c)}J D((c>5G)&&(c<9N)){1Q+=2r.2q((c>>6)|9M);1Q+=2r.2q((c&63)|3j)}J{1Q+=2r.2q((c>>12)|9L);1Q+=2r.2q(((c>>6)&63)|3j);1Q+=2r.2q((c&63)|3j)}}F 1Q}E 6X(3i){C 45=70?"9K":"9J";C 1M="";P(C i=0;i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(i,x,w,j,c,n){C 2n=x&2M,2m=x>>15;L(--n>=0){C l=o[i]&2M;C h=o[i++]>>15;C m=2m*l+h*2n;l=2n*l+((m&2M)<<15)+w[j]+(c&6J);c=(l>>>30)+(m>>>15)+2m*h+(c>>>30);w[j++]=l&6J}F c}E 6F(i,x,w,j,c,n){C 2n=x&40,2m=x>>14;L(--n>=0){C l=o[i]&40;C h=o[i++]>>14;C m=2m*l+h*2n;l=2n*l+((m&40)<<14)+w[j]+c;c=(l>>28)+(m>>14)+2m*h;w[j++]=l&9z}F c}D(3Z&&(3f.3Y=="4x 9y 9x")){G.H.am=6I;1L=30}J D(3Z&&(3f.3Y!="6H")){G.H.am=6G;1L=26}J{G.H.am=6F;1L=28}G.H.O=1L;G.H.1g=((1<<1L)-1);G.H.1l=(1<<1L);C 3e=52;G.H.6D=1d.2z(2,3e);G.H.3W=3e-1L;G.H.3U=2*1L-3e;C 6E="9w";C 2O=V 1y();C 21,1q;21="0".20(0);P(1q=0;1q<=9;++1q)2O[21++]=1q;21="a".20(0);P(1q=10;1q<36;++1q)2O[21++]=1q;21="A".20(0);P(1q=10;1q<36;++1q)2O[21++]=1q;E 3X(n){F 6E.2L(n)}E 3Q(s,i){C c=2O[s.20(i)];F(c==Z)?-1:c}E 6l(r){P(C i=o.t-1;i>=0;--i)r[i]=o[i];r.t=o.t;r.s=o.s}E 6k(x){o.t=1;o.s=(x<0)?-1:0;D(x>0)o[0]=x;J D(x<-1)o[0]=x+1l;J o.t=0}E 1I(i){C r=Q();r.2d(i);F r}E 6j(s,b){C k;D(b==16)k=4;J D(b==8)k=3;J D(b==1P)k=8;J D(b==2)k=1;J D(b==32)k=5;J D(b==4)k=2;J{o.5A(s,b);F}o.t=0;o.s=0;C i=s.T,1Y=1n,1p=0;L(--i>=0){C x=(k==8)?s[i]&2I:3Q(s,i);D(x<0){D(s.2L(i)=="-")1Y=1A;5U}1Y=1n;D(1p==0)o[o.t++]=x;J D(1p+k>o.O){o[o.t-1]|=(x&((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o[0];J D(o.t==0)F 0;F((o[1]&((1<<(32-o.O))-1))<<o.O)|o[0]}E 5i(){F(o.t==0)?o.s:(o[0]<<24)>>24}E 5h(){F(o.t==0)?o.s:(o[0]<<16)>>16}E 5D(r){F 1d.1X(1d.9u*o.O/1d.9t(r))}E 5g(){D(o.s<0)F-1;J D(o.t<=0||(o.t==1&&o[0]<=0))F 0;J F 1}E 5B(b){D(b==Z)b=10;D(o.1G()==0||b<2||b>36)F"0";C 2K=o.3F(b);C a=1d.2z(b,2K);C d=1I(a),y=Q(),z=Q(),r="";o.1K(d,y,z);L(y.1G()>0){r=(a+z.3C()).1v(b).9s(1)+r;y.1K(d,y,z)}F z.3C().1v(b)+r}E 5z(s,b){o.2d(0);D(b==Z)b=10;C 2K=o.3F(b);C d=1d.2z(b,2K),1Y=1n,j=0,w=0;P(C i=0;i<s.T;++i){C x=3Q(s,i);D(x<0){D(s.2L(i)=="-"&&o.1G()==0)1Y=1A;5U}w=b*w+x;D(++j>=2K){o.3D(d);o.2b(w,0);j=0;w=0}}D(j>0){o.3D(1d.2z(b,j));o.2b(w,0)}D(1Y)G.1x.Y(o,o)}E 5y(a,b,c){D("5T"==2R b){D(a<2)o.2d(1);J{o.3E(a,c);D(!o.4Y(a-1))o.1T(G.1w.34(a-1),38,o);D(o.1k())o.2b(1,0);L(!o.4I(b)){o.2b(2,0);D(o.3I()>a)o.Y(G.1w.34(a-1),o)}}}J{C x=V 1y(),t=a&7;x.T=(a>>3)+1;b.5S(x);D(t>0)x[0]&=((1<<t)-1);J x[0]=0;o.3a(x,1P)}}E 5f(){C i=o.t,r=V 1y();r[0]=o.s;C p=o.O-(i*o.O)%8,d,k=0;D(i-->0){D(p<o.O&&(d=o[i]>>p)!=(o.s&o.1g)>>p)r[k++]=d|(o.s<<(o.O-p));L(i>=0){D(p<8){d=(o[i]&((1<<p)-1))<<(8-p);d|=o[--i]>>(p+=o.O-8)}J{d=(o[i]>>(p-=8))&2I;D(p<=0){p+=o.O;--i}}D((d&2J)!=0)d|=-1P;D(k==0&&(o.s&2J)!=(d&2J))++k;D(k>0||d!=o.s)r[k++]=d}}F r}E 5e(a){F(o.1c(a)==0)}E 5d(a){F(o.1c(a)<0)?o:a}E 5c(a){F(o.1c(a)>0)?o:a}E 5x(a,1W,r){C i,f,m=1d.1S(a.t,o.t);P(i=0;i<m;++i)r[i]=1W(o[i],a[i]);D(a.t<o.t){f=a.s&o.1g;P(i=m;i<o.t;++i)r[i]=1W(o[i],f);r.t=o.t}J{f=o.s&o.1g;P(i=m;i<a.t;++i)r[i]=1W(f,a[i]);r.t=a.t}r.s=1W(o.s,a.s);r.1m()}E 5R(x,y){F x&y}E 5b(a){C r=Q();o.1T(a,5R,r);F r}E 38(x,y){F x|y}E 5a(a){C r=Q();o.1T(a,38,r);F r}E 3N(x,y){F x^y}E 58(a){C r=Q();o.1T(a,3N,r);F r}E 3O(x,y){F x&~y}E 57(a){C r=Q();o.1T(a,3O,r);F r}E 56(){C r=Q();P(C i=0;i<o.t;++i)r[i]=o.1g&~o[i];r.t=o.t;r.s=~o.s;F r}E 55(n){C r=Q();D(n<0)o.1h(-n,r);J o.2e(n,r);F r}E 51(n){C r=Q();D(n<0)o.2e(-n,r);J o.1h(n,r);F r}E 5Q(x){D(x==0)F-1;C r=0;D((x&39)==0){x>>=16;r+=16}D((x&2I)==0){x>>=8;r+=8}D((x&3P)==0){x>>=4;r+=4}D((x&3)==0){x>>=2;r+=2}D((x&1)==0)++r;F r}E 50(){P(C i=0;i<o.t;++i)D(o[i]!=0)F i*o.O+5Q(o[i]);D(o.s<0)F o.t*o.O;F-1}E 5P(x){C r=0;L(x!=0){x&=x-1;++r}F r}E 4Z(){C r=0,x=o.s&o.1g;P(C i=0;i<o.t;++i)r+=5P(o[i]^x);F r}E 4X(n){C j=1d.1X(n/o.O);D(j>=o.t)F(o.s!=0);F((o[j]&(1<<(n%o.O)))!=0)}E 5w(n,1W){C r=G.1w.34(n);o.1T(r,1W,r);F r}E 4W(n){F o.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?o.2C():o.2A();C y=(a.s<0)?a.2C():a.2A();D(x.1c(y)<0){C t=x;x=y;y=t}C i=x.2a(),g=y.2a();D(g<0)F x;D(i<g)g=i;D(g>0){x.1h(g,x);y.1h(g,y)}L(x.1G()>0){D((i=x.2a())>0)x.1h(i,x);D((i=y.2a())>0)y.1h(i,y);D(x.1c(y)>=0){x.Y(y,x);x.1h(1,x)}J{y.Y(x,y);y.1h(1,y)}}D(g>0)y.2e(g,y);F y}E 5n(n){D(n<=0)F 0;C d=o.1l%n,r=(o.s<0)?n-1:0;D(o.t>0)D(d==0)r=o[0]%n;J P(C i=o.t-1;i>=0;--i)r=(d*r+o[i])%n;F r}E 4L(m){C ac=m.1k();D((o.1k()&&ac)||m.1G()==0)F G.1x;C u=m.2A(),v=o.2A();C a=1I(1),b=1I(0),c=1I(0),d=1I(1);L(u.1G()!=0){L(u.1k()){u.1h(1,u);D(ac){D(!a.1k()||!b.1k()){a.2B(o,a);b.Y(m,b)}a.1h(1,a)}J D(!b.1k())b.Y(m,b);b.1h(1,b)}L(v.1k()){v.1h(1,v);D(ac){D(!c.1k()||!d.1k()){c.2B(o,c);d.Y(m,d)}c.1h(1,c)}J D(!d.1k())d.Y(m,d);d.1h(1,d)}D(u.1c(v)>=0){u.Y(v,u);D(ac)a.Y(c,a);b.Y(d,b)}J{v.Y(u,v);D(ac)c.Y(a,c);d.Y(b,d)}}D(v.1c(G.1w)!=0)F G.1x;D(d.1c(m)>=0)F d.2Z(m);D(d.1G()<0)d.2B(m,d);J F d;D(d.1G()<0)F d.3r(m);J F d}C 1j=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,9p,9o,9n,9m,9l,5G,9k,9j,9i,9h,9g,9f,9e,9d,9c,9b,9a,99,98,96,95,94,93,92,91,90,8Z,8Y,8X,8W,8V,8U,8T,8S,8R,8Q,8P,8O,8N,8M,8L,8K,8J,8I,8H,8G,8F,8E,8D,8C,8B,8A,8z,8y,8x,8w,8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 3t=A.1v(16);C B=Z;C 3s=Z;C I=4E;C u=Z;C p=4D;C x=Z;C S=Z;C K=Z;C M=Z;C 3p=Z;C U=Z;C 2y=4C;C 4A=4B;C 1s=o;C 2S=1n;C 7U=1n;E 2x(1M){D(4A=="7T"){F 1M}};E 2w(4v,1u,4w){D(2s.4z)U=V 4z();J D(2s.4y){7S{U=V 4y("4x.7R")}7Q(e){}}J{1s.1R("4t 2T 7P.");F}D(U){U.7O=4w;U.7N("7M",4v,1A);U.3z("4u-4h","7L/x-7K-7J-7I");U.3z("4u-T",1u.T);U.3z("7H","7G");U.7F(1u)}J{1s.1R("4t 7E.")}};o.3x=E(){C 33=2y+2x("3x/3y/");C 1u="I="+I;2w(33,1u,4s)};E 4s(){D(U.2X==4&&U.2W==2V){D(U.1t.1i("3y").T>0){C s=2v(U.1t.1i("3y")[0]);x=V G(1F(s+1F(I+":"+p)),16);C v=g.27(x,N);4r(v.1v(16))}J D(U.1t.1i("2u").T>0){1s.1R(2v(U.1t.1i("2u")[0]))}}};E 4r(v){C 1u="v="+v;C 2Y=2y+2x("3x/7D/");2w(2Y,1u,4q)};E 4q(){D(U.2X==4&&U.2W==2V){D(U.1t.1i("7C").T>0){1s.3v()}}};E 2v(4p){F 4p.7B.7A};o.3v=E(){C 33=2y+2x("7z/");C 1u="I="+I+"&A="+3t;2w(33,1u,4o)};E 4o(){D(U.2X==4&&U.2W==2V){D(U.1t.1i("r").T>0){C 3w=U.1t.1i("r")[0];4n(3w.3l("s"),3w.3l("B"))}J D(U.1t.1i("2u").T>0){1s.3v()}}};E 4n(s,3u){B=V G(3u,16);3s=3u;u=V G(1F(3t+3s),16);x=V G(1F(s+1F(I+":"+p)),16);C 4m=k.3q(g.27(x,N));C 4l=a.3r(u.3q(x));S=B.2Z(4m).27(4l,N);C 4k=A.1v(16)+B.1v(16)+S.1v(16);M=1F(4k);3p=1F(A.1v(16)+M+S.1v(16));4j(M);};E 4j(M){C 1u="M="+M;C 2Y=2y+2x("7y/");2w(2Y,1u,4i)};E 4i(){D(U.2X==4&&U.2W==2V){D(U.1t.1i("M").T>0){D(2v(U.1t.1i("M")[0])==3p){1s.4g();2S=1A}J 1s.1R("7x 2t 7w 2T 7v")}J D(U.1t.1i("2u").T>0){1s.1R(2v(U.1t.1i("2u")[0]))}}};E 7u(){D(1s.3n("7t")&&1s.3n("7s"))F;C 2U=2Q.7r(\'3m\');2U.4h=\'7q/7p\';C 3o=4d.7o("/");2U.4c=3o.7n(0,3o.T-1).7m("/")+"/7l.1S.7k";2Q.1i(\'7j\')[0].7i(2U)}o.2t=E(){D(K==Z)D(2S){K=1F(S);F K}J 1s.1R("7h 7g 2T 7f 2S.");J F K};o.4g=E(){4f("7e 7d.")};o.1R=E(t){4f(t)};o.3n=E(4e){F(2R(2s[4e])=="7c")?1n:1A}};C 4d=2Q.1i(\'3m\')[2Q.1i(\'3m\').T-1].3l("4c");',62,683,'||||||||||||||||||||||||this||||||||||||||var|if|function|return|BigInteger|prototype||else||while|||DB|for|nbi|||length|xhr|new|||subTo|null|||||||||||HASH|r2|compareTo|Math|safe_add|rng_pptr|DM|rShiftTo|getElementsByTagName|lowprimes|isEven|DV|clamp|false|ds|sh|vv|rng_pool|that|responseXML|params|toString|ONE|ZERO|Array|reduce|true|sqrTo|ys|bs|255|SHA256|signum|abs|nbv|copyTo|divRemTo|dbits|str|Montgomery|Classic|256|utftext|error_message|min|bitwiseTo|mulTo|Barrett|op|floor|mi|pm|charCodeAt|rr||||||modPow|||getLowestSetBit|dAddOffset|n1|fromInt|lShiftTo|revert|convert|multiplyTo|dlShiftTo|NullExp|nsh|cbs|xh|xl|string|chrsz|fromCharCode|String|window|key|error|innerxml|ajaxRequest|paths|url|pow|clone|addTo|negate|k1|km|nbits|squareTo|drShiftTo|0xff|0x80|cs|charAt|0x7fff|bm|BI_RC|rng_state|document|typeof|authenticated|not|scriptElt|200|status|readyState|auth_url|subtract||||handshake_url|shiftLeft|changeBit|||op_or|0xffff|fromString|qd|y0|pt|BI_FP|navigator|rng_psize|Arcfour|binarray|128|T1|getAttribute|script|isdefined|arr|M2|multiply|add|Bstr|Astr|ephemeral|identify|response|register|salt|setRequestHeader|SecureRandom|max|intValue|dMultiply|fromNumber|chunkSize|is1|g2|bitLength|q3|mod|exp|nNop|op_xor|op_andnot|0xf|intAt|mpl|mp|ts|F2|yt|F1|int2char|appName|j_lm|0x3fff||ba||rng_seed_time|hex_tab|bin|||T2|0xFFFF|lsw|src|srpPath|variable|alert|success|type|confirm_authentication|send_hash|Mstr|aux|kgx|calculations|receive_salts|node|register_user|register_send_verifier|register_receive_salt|Ajax|Content|full_url|callback|Microsoft|ActiveXObject|XMLHttpRequest|server|ser|base_url|password|username|rng|Nstr|bnIsProbablePrime|isProbablePrime|bnGCD|bnPow|bnModInverse|bnModPow|bnDivideAndRemainder|bnRemainder|bnDivide|divide|bnMultiply|bnSubtract|bnAdd|bnFlipBit|bnClearBit|bnSetBit|bnTestBit|testBit|bnBitCount|bnGetLowestSetBit|bnShiftRight|||shiftRight|bnShiftLeft|bnNot|bnAndNot|bnXor||bnOr|bnAnd|bnMax|bnMin|bnEquals|bnToByteArray|bnSigNum|bnShortValue|bnByteValue|bnIntValue|bnClone|bnpMillerRabin|millerRabin|bnpModInt|modInt|bnpMultiplyUpperTo|multiplyUpperTo|bnpMultiplyLowerTo|multiplyLowerTo|bnpDAddOffset|bnpDMultiply|bnpAddTo|bnpChangeBit|bnpBitwiseTo|bnpFromNumber|bnpFromRadix|fromRadix|bnpToRadix|toRadix|bnpChunkSize|modPowInt|lplim|127|barrettSqrTo|barrettMulTo|barrettReduce|barrettRevert|barrettConvert|mu|nSqrTo|nMulTo|cbit|lbit|op_and|nextBytes|number|continue|bnModPowInt|bnMod|bnBitLength|bnCompareTo|bnAbs|bnNegate||bnToString|||bnpExp|bnpIsEven||bnpInvDigit|invDigit|bnpDivRemTo|bnpSquareTo|bnpMultiplyTo|bnpSubTo|bnpRShiftTo|bnpLShiftTo|bnpDRShiftTo|bnpDLShiftTo|bnpClamp|bnpFromString|bnpFromInt|bnpCopyTo|montSqrTo|montMulTo|montReduce|montRevert|montConvert|u0|um|mph|mt2|cSqrTo|cMulTo|cReduce|cRevert|cConvert|ms|d2|d1|FV|BI_RM|am3|am1|Netscape|am2|0x3fffffff|canary|rng_get_bytes|rng_get_byte|next|init|prng_newstate|random|crypto|rng_seed_int|ARC4next|ARC4init|str2binb|core_sha256|binb2hex|Utf8Encode|0xF|hexcase||mask||Maj|Sigma0256|Ch|Sigma1256|Gamma0256||Gamma1256|msw|undefined|successful|Authentication|been|has|User|appendChild|head|js|hash|join|slice|split|javascript|text|createElement|MD5|SHA1|import_hashes|match|does|Server|authenticate|handshake|nodeValue|firstChild|ok|user|failed|send|close|Connection|urlencoded|form|www|application|POST|open|onreadystatechange|supported|catch|XMLHTTP|try|django|hash_import|c46d46600d87fef149bd79b81119842f3c20241fda67d06ef412d8f6d9479c58|115b8b692e0e045692cf280b436735c77a5a9e8a9e7ed56c965f87db5b2a2ece3|SRP|gcd|modInverse|divideAndRemainder|remainder|flipBit||clearBit|setBit|bitCount|andNot|xor||or|and|equals|toByteArray|shortValue|byteValue|509|503|499|491|487|479|467|463|461|457|449|443|439|433|431|421|419|409|401|397|389|383|379|373|367|359|353|349|347|337|331|317|313|311|307|293|283|281|277|271|269|263|257|251|241|239|233|229|227|223|211|199|197||193|191|181|179|173|167|163|157|151|149|139|137|131|113|109|107|103|101|768|144|substr|log|LN2|0xffffffff|0123456789abcdefghijklmnopqrstuvwxyz|Explorer|Internet|0xfffffff|0x3ffffff|0x4000000|0xefcafe|0xffffff|0xdeadbeefcafe|65536|appVersion|getTime|Date|0123456789abcdef|0123456789ABCDEF|224|192|2048|replace|0x5BE0CD19|0x1F83D9AB|0x9B05688C|0x510E527F|0xA54FF53A|0x3C6EF372|0xBB67AE85|0x6A09E667|0xC67178F2|0xBEF9A3F7|0xA4506CEB|0x90BEFFFA|0x8CC70208|0x84C87814|0x78A5636F|0x748F82EE|0x682E6FF3|0x5B9CCA4F|0x4ED8AA4A|0x391C0CB3|0x34B0BCB5|0x2748774C|0x1E376C08||0x19A4C116|0x106AA070|0xF40E3585|0xD6990624|0xD192E819|0xC76C51A3|0xC24B8B70|0xA81A664B|0xA2BFE8A1||0x92722C85|0x81C2C92E|0x766A0ABB|0x650A7354|0x53380D13|0x4D2C6DFC|0x2E1B2138|0x27B70A85|0x14292967|0x6CA6351|0xD5A79147|0xC6E00BF3|0xBF597FC7|0xB00327C8|0xA831C66D|0x983E5152|0x76F988DA|0x5CB0A9DC|0x4A7484AA|0x2DE92C6F|0x240CA1CC|0xFC19DC6|0xEFBE4786|0xE49B69C1|0xC19BF174|0x9BDC06A7|0x80DEB1FE|0x72BE5D74|0x550C7DC3|0x243185BE|0x12835B01|0xD807AA98|0xAB1C5ED5|0x923F82A4|0x59F111F1|0x3956C25B|0xE9B5DBA5|0xB5C0FBCF|0x71374491|0x428A2F98'.split('|'),0,{}))
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('E 1G(s){C 2s=8;C 7e=0;E 1e(x,y){C 4l=(x&4k)+(y&4k);C 7m=(x>>16)+(y>>16)+(4l>>16);F(7m<<16)|(4l&4k)}E S(X,n){F(X>>>n)|(X<<(32-n))}E R(X,n){F(X>>>n)}E 7i(x,y,z){F((x&y)^((~x)&z))}E 7g(x,y,z){F((x&y)^(x&z)^(y&z))}E 7h(x){F(S(x,2)^S(x,13)^S(x,22))}E 7j(x){F(S(x,6)^S(x,11)^S(x,25))}E 7k(x){F(S(x,7)^S(x,18)^R(x,3))}E 7l(x){F(S(x,17)^S(x,19)^R(x,10))}E 7a(m,l){C K=V 1z(b1,b0,aZ,aY,aX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 1Q="";P(C i=0;i<3n.T*4;i++){1Q+=4h.2P((3n[i>>2]>>((3-i%4)*8+4))&7d)+4h.2P((3n[i>>2]>>((3-i%4)*8))&7d)}F 1Q}s=7c(s);F 7b(7a(78(s),s.T*2s))}E 3m(){o.i=0;o.j=0;o.S=V 1z()}E 77(2x){C i,j,t;P(i=0;i<1T;++i)o.S[i]=i;j=0;P(i=0;i<1T;++i){j=(j+o.S[i]+2x[i%2x.T])&1F;t=o.S[i];o.S[i]=o.S[j];o.S[j]=t}o.i=0;o.j=0}E 76(){C t;o.i=(o.i+1)&1F;o.j=(o.j+o.S[o.i])&1F;t=o.S[o.i];o.S[o.i]=o.S[o.j];o.S[o.j]=t;F o.S[(t+o.S[o.i])&1F]}3m.H.6Z=77;3m.H.6Y=76;E 70(){F V 3m()}C 3l=1T;C 2T;C 1r;C 1f;E 75(x){1r[1f++]^=x&1F;1r[1f++]^=(x>>8)&1F;1r[1f++]^=(x>>16)&1F;1r[1f++]^=(x>>24)&1F;D(1f>=3l)1f-=3l}E 4g(){75(V 9J().9I())}D(1r==Z){1r=V 1z();1f=0;C t;D(3k.4c=="6S"&&3k.9H<"5"&&2w.74){C z=2w.74.72(32);P(t=0;t<z.T;++t)1r[1f++]=z.2a(t)&1F}L(1f<3l){t=1d.20(9G*1d.72());1r[1f++]=t>>>8;1r[1f++]=t&1F}1f=0;4g();}E 6X(){D(2T==Z){4g();2T=70();2T.6Z(1r);P(1f=0;1f<1r.T;++1f)1r[1f]=0;1f=0;}F 2T.6Y()}E 6W(4f){C i;P(i=0;i<4f.T;++i)4f[i]=6X()}E 3K(){}3K.H.66=6W;C 1N;C 6V=9F;C 4d=((6V&9E)==9D);E G(a,b,c){D(a!=Z)D("68"==2V a)o.3O(a,b,c);J D(b==Z&&"2r"!=2V a)o.3f(a,1T);J o.3f(a,b)}E Q(){F V G(Z)}E 6R(i,x,w,j,c,n){L(--n>=0){C v=x*o[i++]+w[j]+c;c=1d.20(v/9C);w[j++]=v&9B}F c}E 6T(i,x,w,j,c,n){C 2q=x&2Q,2p=x>>15;L(--n>=0){C l=o[i]&2Q;C h=o[i++]>>15;C m=2p*l+h*2q;l=2q*l+((m&2Q)<<15)+w[j]+(c&6U);c=(l>>>30)+(m>>>15)+2p*h+(c>>>30);w[j++]=l&6U}F c}E 6Q(i,x,w,j,c,n){C 2q=x&4e,2p=x>>14;L(--n>=0){C l=o[i]&4e;C h=o[i++]>>14;C m=2p*l+h*2q;l=2q*l+((m&4e)<<14)+w[j]+c;c=(l>>28)+(m>>14)+2p*h;w[j++]=l&9A}F c}D(4d&&(3k.4c=="4I 9z 9y")){G.H.am=6T;1N=30}J D(4d&&(3k.4c!="6S")){G.H.am=6R;1N=26}J{G.H.am=6Q;1N=28}G.H.O=1N;G.H.1h=((1<<1N)-1);G.H.1l=(1<<1N);C 3j=52;G.H.6O=1d.2D(2,3j);G.H.4a=3j-1N;G.H.46=2*1N-3j;C 6P="9x";C 2S=V 1z();C 2b,1q;2b="0".2a(0);P(1q=0;1q<=9;++1q)2S[2b++]=1q;2b="a".2a(0);P(1q=10;1q<36;++1q)2S[2b++]=1q;2b="A".2a(0);P(1q=10;1q<36;++1q)2S[2b++]=1q;E 4b(n){F 6P.2P(n)}E 40(s,i){C c=2S[s.2a(i)];F(c==Z)?-1:c}E 6w(r){P(C i=o.t-1;i>=0;--i)r[i]=o[i];r.t=o.t;r.s=o.s}E 6v(x){o.t=1;o.s=(x<0)?-1:0;D(x>0)o[0]=x;J D(x<-1)o[0]=x+1l;J o.t=0}E 1K(i){C r=Q();r.2g(i);F r}E 6u(s,b){C k;D(b==16)k=4;J D(b==8)k=3;J D(b==1T)k=8;J D(b==2)k=1;J D(b==32)k=5;J D(b==4)k=2;J{o.5L(s,b);F}o.t=0;o.s=0;C i=s.T,21=1n,1p=0;L(--i>=0){C x=(k==8)?s[i]&2M:40(s,i);D(x<0){D(s.2P(i)=="-")21=1B;69}21=1n;D(1p==0)o[o.t++]=x;J D(1p+k>o.O){o[o.t-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==0)F 0;F((o[1]&((1<<(32-o.O))-1))<<o.O)|o[0]}E 5t(){F(o.t==0)?o.s:(o[0]<<24)>>24}E 5s(){F(o.t==0)?o.s:(o[0]<<16)>>16}E 5O(r){F 1d.20(1d.9v*o.O/1d.9u(r))}E 5r(){D(o.s<0)F-1;J D(o.t<=0||(o.t==1&&o[0]<=0))F 0;J F 1}E 5M(b){D(b==Z)b=10;D(o.1I()==0||b<2||b>36)F"0";C 2O=o.3P(b);C a=1d.2D(b,2O);C d=1K(a),y=Q(),z=Q(),r="";o.1M(d,y,z);L(y.1I()>0){r=(a+z.3M()).1w(b).9t(1)+r;y.1M(d,y,z)}F z.3M().1w(b)+r}E 5K(s,b){o.2g(0);D(b==Z)b=10;C 2O=o.3P(b);C d=1d.2D(b,2O),21=1n,j=0,w=0;P(C i=0;i<s.T;++i){C x=40(s,i);D(x<0){D(s.2P(i)=="-"&&o.1I()==0)21=1B;69}w=b*w+x;D(++j>=2O){o.3N(d);o.2e(w,0);j=0;w=0}}D(j>0){o.3N(1d.2D(b,j));o.2e(w,0)}D(21)G.1y.Y(o,o)}E 5J(a,b,c){D("68"==2V b){D(a<2)o.2g(1);J{o.3O(a,c);D(!o.5c(a-1))o.1W(G.1x.3b(a-1),3d,o);D(o.1k())o.2e(1,0);L(!o.4T(b)){o.2e(2,0);D(o.3S()>a)o.Y(G.1x.3b(a-1),o)}}}J{C x=V 1z(),t=a&7;x.T=(a>>3)+1;b.66(x);D(t>0)x[0]&=((1<<t)-1);J x[0]=0;o.3f(x,1T)}}E 5q(){C i=o.t,r=V 1z();r[0]=o.s;C p=o.O-(i*o.O)%8,d,k=0;D(i-->0){D(p<o.O&&(d=o[i]>>p)!=(o.s&o.1h)>>p)r[k++]=d|(o.s<<(o.O-p));L(i>=0){D(p<8){d=(o[i]&((1<<p)-1))<<(8-p);d|=o[--i]>>(p+=o.O-8)}J{d=(o[i]>>(p-=8))&2M;D(p<=0){p+=o.O;--i}}D((d&2N)!=0)d|=-1T;D(k==0&&(o.s&2N)!=(d&2N))++k;D(k>0||d!=o.s)r[k++]=d}}F r}E 5p(a){F(o.1c(a)==0)}E 5o(a){F(o.1c(a)<0)?o:a}E 5n(a){F(o.1c(a)>0)?o:a}E 5I(a,1Z,r){C i,f,m=1d.1P(a.t,o.t);P(i=0;i<m;++i)r[i]=1Z(o[i],a[i]);D(a.t<o.t){f=a.s&o.1h;P(i=m;i<o.t;++i)r[i]=1Z(o[i],f);r.t=o.t}J{f=o.s&o.1h;P(i=m;i<a.t;++i)r[i]=1Z(f,a[i]);r.t=a.t}r.s=1Z(o.s,a.s);r.1m()}E 65(x,y){F x&y}E 5m(a){C r=Q();o.1W(a,65,r);F r}E 3d(x,y){F x|y}E 5l(a){C r=Q();o.1W(a,3d,r);F r}E 3X(x,y){F x^y}E 5k(a){C r=Q();o.1W(a,3X,r);F r}E 3Y(x,y){F x&~y}E 5j(a){C r=Q();o.1W(a,3Y,r);F r}E 5i(){C r=Q();P(C i=0;i<o.t;++i)r[i]=o.1h&~o[i];r.t=o.t;r.s=~o.s;F r}E 5h(n){C r=Q();D(n<0)o.1i(-n,r);J o.2h(n,r);F r}E 5f(n){C r=Q();D(n<0)o.2h(-n,r);J o.1i(n,r);F r}E 62(x){D(x==0)F-1;C r=0;D((x&3e)==0){x>>=16;r+=16}D((x&2M)==0){x>>=8;r+=8}D((x&3Z)==0){x>>=4;r+=4}D((x&3)==0){x>>=2;r+=2}D((x&1)==0)++r;F r}E 5e(){P(C i=0;i<o.t;++i)D(o[i]!=0)F i*o.O+62(o[i]);D(o.s<0)F o.t*o.O;F-1}E 60(x){C r=0;L(x!=0){x&=x-1;++r}F r}E 5d(){C r=0,x=o.s&o.1h;P(C i=0;i<o.t;++i)r+=60(o[i]^x);F r}E 5b(n){C j=1d.20(n/o.O);D(j>=o.t)F(o.s!=0);F((o[j]&(1<<(n%o.O)))!=0)}E 5H(n,1Z){C r=G.1x.3b(n);o.1W(r,1Z,r);F r}E 5a(n){F o.3c(n,3d)}E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<0)?o.2G():o.2E();C y=(a.s<0)?a.2G():a.2E();D(x.1c(y)<0){C t=x;x=y;y=t}C i=x.2d(),g=y.2d();D(g<0)F x;D(i<g)g=i;D(g>0){x.1i(g,x);y.1i(g,y)}L(x.1I()>0){D((i=x.2d())>0)x.1i(i,x);D((i=y.2d())>0)y.1i(i,y);D(x.1c(y)>=0){x.Y(y,x);x.1i(1,x)}J{y.Y(x,y);y.1i(1,y)}}D(g>0)y.2h(g,y);F y}E 5y(n){D(n<=0)F 0;C d=o.1l%n,r=(o.s<0)?n-1:0;D(o.t>0)D(d==0)r=o[0]%n;J P(C i=o.t-1;i>=0;--i)r=(d*r+o[i])%n;F r}E 4W(m){C ac=m.1k();D((o.1k()&&ac)||m.1I()==0)F G.1y;C u=m.2E(),v=o.2E();C a=1K(1),b=1K(0),c=1K(0),d=1K(1);L(u.1I()!=0){L(u.1k()){u.1i(1,u);D(ac){D(!a.1k()||!b.1k()){a.2F(o,a);b.Y(m,b)}a.1i(1,a)}J D(!b.1k())b.Y(m,b);b.1i(1,b)}L(v.1k()){v.1i(1,v);D(ac){D(!c.1k()||!d.1k()){c.2F(o,c);d.Y(m,d)}c.1i(1,c)}J D(!d.1k())d.Y(m,d);d.1i(1,d)}D(u.1c(v)>=0){u.Y(v,u);D(ac)a.Y(c,a);b.Y(d,b)}J{v.Y(u,v);D(ac)c.Y(a,c);d.Y(b,d)}}D(v.1c(G.1x)!=0)F G.1y;D(d.1c(m)>=0)F d.39(m);D(d.1I()<0)d.2F(m,d);J F d;D(d.1I()<0)F d.3B(m);J F d}C 1j=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,9q,9p,9o,9n,9m,5R,9l,9k,9j,9i,9h,9g,9f,9e,9d,9c,9b,9a,99,98,96,95,94,93,92,91,90,8Z,8Y,8X,8W,8V,8U,8T,8S,8R,8Q,8P,8O,8N,8M,8L,8K,8J,8I,8H,8G,8F,8E,8D,8C,8B,8A,8z,8y,8x,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(a,N);C 3D=A.1w(16);C B=Z;C 3C=Z;C I=4P;C u=Z;C p=4O;C x=Z;C S=Z;C K=Z;C M=Z;C 3z=Z;C U=Z;C 2C=4N;C 4L=4M;C 1s=o;C 2W=1n;C 7V=1n;E 2B(1Q){D(4L=="7U"){F 1Q}};E 2A(4G,1v,4H){D(2w.4K)U=V 4K();J D(2w.4J){7T{U=V 4J("4I.7S")}7R(e){}}J{1s.1V("4E 2X 7Q.");F}D(U){U.7P=4H;U.7O("7N",4G,1B);U.3J("4F-2Z","7M/x-7L-7K-7J");U.3J("4F-T",1v.T);U.3J("7I","7H");U.7G(1v)}J{1s.1V("4E 7F.")}};o.3H=E(){C 3a=2C+2B("3H/3I/");C 1v="I="+I;2A(3a,1v,4D)};E 4D(){D(U.35==4&&U.34==33){D(U.1u.1g("3I").T>0){C s=2z(U.1u.1g("3I")[0]);x=V G(1G(s+1G(I+":"+p)),16);C v=g.2c(x,N);4C(v.1w(16))}J D(U.1u.1g("2y").T>0){1s.1V(2z(U.1u.1g("2y")[0]))}}};E 4C(v){C 1v="v="+v;C 38=2C+2B("3H/7E/");2A(38,1v,4B)};E 4B(){D(U.35==4&&U.34==33){D(U.1u.1g("7D").T>0){1s.3F()}}};E 2z(4A){F 4A.7C.7B};o.3F=E(){C 3a=2C+2B("7A/");C 1v="I="+I+"&A="+3D;2A(3a,1v,4z)};E 4z(){D(U.35==4&&U.34==33){D(U.1u.1g("r").T>0){C 3G=U.1u.1g("r")[0];4y(3G.3q("s"),3G.3q("B"))}J D(U.1u.1g("2y").T>0){1s.3F()}}};E 4y(s,3E){B=V G(3E,16);3C=3E;u=V G(1G(3D+3C),16);x=V G(1G(s+1G(I+":"+p)),16);C 4x=k.3A(g.2c(x,N));C 4w=a.3B(u.3A(x));S=B.39(4x).2c(4w,N);C 4v=A.1w(16)+B.1w(16)+S.1w(16);M=1G(4v);3z=1G(A.1w(16)+M+S.1w(16));4u(M);};E 4u(M){C 1v="M="+M;C 38=2C+2B("7z/");2A(38,1v,4t)};E 4t(){D(U.35==4&&U.34==33){D(U.1u.1g("M").T>0){D(2z(U.1u.1g("M")[0])==3z){4s();1s.4p();2W=1B}J 1s.1V("7y 2x 7x 2X 7w")}J D(U.1u.1g("2y").T>0){1s.1V(2z(U.1u.1g("2y")[0]))}}};E 4s(){D(1s.3r("4q")&&1s.3r("4r"))F;C 1H=4m.7v("/");D(1H[1H.T-1]=="7u.1P.2Y"){C 1t=1O.3y(\'2v\');1t.2Z=\'3x/3w\';1t.2U=1H.3v(0,1H.T-1).3u("/")+"/7t.1P.2Y";1O.1g(\'3t\')[0].3s(1t)}J{C 1t=1O.3y(\'2v\');1t.2Z=\'3x/3w\';1t.2U=1H.3v(0,1H.T-1).3u("/")+"/4r.2Y";1O.1g(\'3t\')[0].3s(1t);1t=1O.3y(\'2v\');1t.2Z=\'3x/3w\';1t.2U=1H.3v(0,1H.T-1).3u("/")+"/4q.2Y";1O.1g(\'3t\')[0].3s(1t)}}o.2x=E(){D(K==Z)D(2W){K=1G(S);F K}J 1s.1V("7s 7r 2X 7q 2W.");J F K};o.4p=E(){4o("7p 7o.")};o.1V=E(t){4o(t)};o.3r=E(4n){F(2V(2w[4n])=="7n")?1n:1B}};C 4m=1O.1g(\'2v\')[1O.1g(\'2v\').T-1].3q("2U");',62,684,'||||||||||||||||||||||||this||||||||||||||var|if|function|return|BigInteger|prototype||else||while|||DB|for|nbi|||length|xhr|new|||subTo|null|||||||||||HASH|r2|compareTo|Math|safe_add|rng_pptr|getElementsByTagName|DM|rShiftTo|lowprimes|isEven|DV|clamp|false|ds|sh|vv|rng_pool|that|scriptElt|responseXML|params|toString|ONE|ZERO|Array|reduce|true|sqrTo|ys|bs|255|SHA256|arr|signum|abs|nbv|copyTo|divRemTo|dbits|document|min|str|Montgomery|Classic|256|utftext|error_message|bitwiseTo|mulTo|Barrett|op|floor|mi||||||pm|||charCodeAt|rr|modPow|getLowestSetBit|dAddOffset|n1|fromInt|lShiftTo|revert|convert|multiplyTo|dlShiftTo|NullExp|nsh|cbs|xh|xl|string|chrsz|fromCharCode|String|script|window|key|error|innerxml|ajaxRequest|paths|url|pow|clone|addTo|negate|k1|km|nbits|squareTo|drShiftTo|0xff|0x80|cs|charAt|0x7fff|bm|BI_RC|rng_state|src|typeof|authenticated|not|js|type||||200|status|readyState|||auth_url|subtract|handshake_url|shiftLeft|changeBit|op_or|0xffff|fromString|qd|y0|pt|BI_FP|navigator|rng_psize|Arcfour|binarray|128|T1|getAttribute|isdefined|appendChild|head|join|slice|javascript|text|createElement|M2|multiply|add|Bstr|Astr|ephemeral|identify|response|register|salt|setRequestHeader|SecureRandom|max|intValue|dMultiply|fromNumber|chunkSize|is1|g2|bitLength|q3|mod|exp|nNop|op_xor|op_andnot|0xf|intAt||mpl||mp|ts|F2|||yt|F1|int2char|appName|j_lm|0x3fff|ba|rng_seed_time|hex_tab|bin|T2|0xFFFF|lsw|srpPath|variable|alert|success|SHA1|MD5|import_hashes|confirm_authentication|send_hash|Mstr|aux|kgx|calculations|receive_salts|node|register_user|register_send_verifier|register_receive_salt|Ajax|Content|full_url|callback|Microsoft|ActiveXObject|XMLHttpRequest|server|ser|base_url|password|username|rng|Nstr|bnIsProbablePrime|isProbablePrime|bnGCD|bnPow|bnModInverse|bnModPow|bnDivideAndRemainder|bnRemainder|bnDivide|divide|||bnMultiply|bnSubtract|bnAdd|bnFlipBit|bnClearBit||bnSetBit|bnTestBit|testBit|bnBitCount|bnGetLowestSetBit|bnShiftRight|shiftRight|bnShiftLeft|bnNot|bnAndNot|bnXor|bnOr|bnAnd|bnMax|bnMin|bnEquals|bnToByteArray|bnSigNum|bnShortValue|bnByteValue|bnIntValue|bnClone|bnpMillerRabin|millerRabin|bnpModInt|modInt|bnpMultiplyUpperTo|multiplyUpperTo|bnpMultiplyLowerTo|multiplyLowerTo|bnpDAddOffset|bnpDMultiply|bnpAddTo|bnpChangeBit|bnpBitwiseTo|bnpFromNumber|bnpFromRadix|fromRadix|bnpToRadix|toRadix|bnpChunkSize|modPowInt|lplim|127|barrettSqrTo|barrettMulTo|barrettReduce|barrettRevert|barrettConvert|mu|nSqrTo|nMulTo|cbit||lbit|||op_and|nextBytes||number|continue|bnModPowInt|bnMod|bnBitLength|bnCompareTo|bnAbs|bnNegate|bnToString|bnpExp|bnpIsEven|bnpInvDigit|invDigit|bnpDivRemTo|bnpSquareTo|bnpMultiplyTo|bnpSubTo|bnpRShiftTo|bnpLShiftTo|bnpDRShiftTo|bnpDLShiftTo|bnpClamp|bnpFromString|bnpFromInt|bnpCopyTo|montSqrTo|montMulTo|montReduce|montRevert|montConvert|u0|um|mph|mt2|cSqrTo|cMulTo|cReduce|cRevert|cConvert|ms|d2|d1|FV|BI_RM|am3|am1|Netscape|am2|0x3fffffff|canary|rng_get_bytes|rng_get_byte|next|init|prng_newstate||random||crypto|rng_seed_int|ARC4next|ARC4init|str2binb||core_sha256|binb2hex|Utf8Encode|0xF|hexcase|mask|Maj|Sigma0256|Ch|Sigma1256|Gamma0256|Gamma1256|msw|undefined|successful|Authentication|been|has|User|hash|srp|split|match|does|Server|authenticate|handshake|nodeValue|firstChild|ok|user|failed|send|close|Connection|urlencoded|form|www|application|POST|open|onreadystatechange|supported|catch|XMLHTTP|try|django|hash_import|c46d46600d87fef149bd79b81119842f3c20241fda67d06ef412d8f6d9479c58|115b8b692e0e045692cf280b436735c77a5a9e8a9e7ed56c965f87db5b2a2ece3|SRP|gcd|modInverse|divideAndRemainder|remainder||flipBit|clearBit|setBit|bitCount|andNot||xor|or|and|equals|toByteArray|shortValue|byteValue|509|503|499|491|487|479|467|463|461|457|449|443|439|433|431|421|419|409|401|397|389|383|379|373|367|359|353|349|347|337|331|317|313|311|307|293|283|281|277|271|269|263|257|251|241|239|233|229|227|223|211|199||197|193|191|181|179|173|167|163|157|151|149|139|137|131|113|109|107|103|101|768|144|substr|log|LN2|0xffffffff|0123456789abcdefghijklmnopqrstuvwxyz|Explorer|Internet|0xfffffff|0x3ffffff|0x4000000|0xefcafe|0xffffff|0xdeadbeefcafe|65536|appVersion|getTime|Date|0123456789abcdef|0123456789ABCDEF|224|192|2048|replace|0x5BE0CD19|0x1F83D9AB|0x9B05688C|0x510E527F|0xA54FF53A|0x3C6EF372|0xBB67AE85|0x6A09E667|0xC67178F2|0xBEF9A3F7|0xA4506CEB|0x90BEFFFA|0x8CC70208|0x84C87814|0x78A5636F|0x748F82EE|0x682E6FF3|0x5B9CCA4F|0x4ED8AA4A|0x391C0CB3|0x34B0BCB5|0x2748774C||0x1E376C08|0x19A4C116|0x106AA070|0xF40E3585|0xD6990624|0xD192E819|0xC76C51A3|0xC24B8B70|0xA81A664B||0xA2BFE8A1|0x92722C85|0x81C2C92E|0x766A0ABB|0x650A7354|0x53380D13|0x4D2C6DFC|0x2E1B2138|0x27B70A85|0x14292967|0x6CA6351|0xD5A79147|0xC6E00BF3|0xBF597FC7|0xB00327C8|0xA831C66D|0x983E5152|0x76F988DA|0x5CB0A9DC|0x4A7484AA|0x2DE92C6F|0x240CA1CC|0xFC19DC6|0xEFBE4786|0xE49B69C1|0xC19BF174|0x9BDC06A7|0x80DEB1FE|0x72BE5D74|0x550C7DC3|0x243185BE|0x12835B01|0xD807AA98|0xAB1C5ED5|0x923F82A4|0x59F111F1|0x3956C25B|0xE9B5DBA5|0xB5C0FBCF|0x71374491|0x428A2F98'.split('|'),0,{}))
diff --git a/javascript/srp.js b/javascript/srp.js
index b0b1e3e..07f5206 100644
--- a/javascript/srp.js
+++ b/javascript/srp.js
@@ -159,6 +159,7 @@ function SRP(username, password, ser, base_url)
{
if(innerxml(xhr.responseXML.getElementsByTagName("M")[0]) == M2)
{
+ import_hashes();
that.success();
authenticated = true;
}
@@ -174,11 +175,27 @@ function SRP(username, password, ser, base_url)
function import_hashes()
{
if(that.isdefined("SHA1") && that.isdefined("MD5")) return;
- var scriptElt = document.createElement('script');
- scriptElt.type = 'text/javascript';
var arr=srpPath.split("/");
- scriptElt.src = arr.slice(0, arr.length-1).join("/")+"/hash.min.js";
- document.getElementsByTagName('head')[0].appendChild(scriptElt);
+ var path = arr.slice(0, arr.length-1).join("/");
+ if(arr[arr.length-1] == "srp.min.js")
+ {
+ var scriptElt = document.createElement('script');
+ scriptElt.type = 'text/javascript';
+ scriptElt.src = path+"/hash.min.js";
+ document.getElementsByTagName('head')[0].appendChild(scriptElt);
+ }
+ else
+ {
+ var scriptElt = document.createElement('script');
+ scriptElt.type = 'text/javascript';
+ scriptElt.src = path +"/MD5.js";
+ document.getElementsByTagName('head')[0].appendChild(scriptElt);
+ scriptElt = document.createElement('script');
+ scriptElt.type = 'text/javascript';
+ scriptElt.src = path +"/SHA1.js";
+ document.getElementsByTagName('head')[0].appendChild(scriptElt);
+ }
+
}
this.key = function()
{