开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 2072|回复: 8
收起左侧

[已解决] 发条工具 如何 添加对象

 关闭 [复制链接]
结帖率:53% (9/17)
发表于 2014-12-7 14:06:01 | 显示全部楼层 |阅读模式   吉林省通化市
20精币
  1. $.RSA=function(){
  2.     function h(z,t){
  3.         return new au(z,t)
  4.     }
  5.     function aj(aC,aD){
  6.         var t="";
  7.         var z=0;
  8.         while(z+aD<aC.length){
  9.             t+=aC.substring(z,z+aD)+"\n";
  10.             z+=aD
  11.         }
  12.         return t+aC.substring(z,aC.length)
  13.     }
  14.     function u(t){
  15.         if(t<16){
  16.             return"0"+t.toString(16)
  17.         }
  18.         else{
  19.             return t.toString(16)
  20.         }
  21.         
  22.     }
  23.     function ah(aD,aG){
  24.         if(aG<aD.length+11){
  25.             uv_alert("Message too long for RSA");
  26.             return null
  27.         }
  28.         var aF=new Array();
  29.         var aC=aD.length-1;
  30.         while(aC>=0&&aG>0){
  31.             var aE=aD.charCodeAt(aC--);
  32.             aF[--aG]=aE
  33.         }
  34.         aF[--aG]=0;
  35.         var z=new af();
  36.         var t=new Array();
  37.         while(aG>2){
  38.             t[0]=0;
  39.             while(t[0]==0){
  40.                 z.nextBytes(t)
  41.             }
  42.             aF[--aG]=t[0]
  43.         }
  44.         aF[--aG]=2;
  45.         aF[--aG]=0;
  46.         return new au(aF)
  47.     }
  48.     function N(){
  49.         this.n=null;
  50.         this.e=0;
  51.         this.d=null;
  52.         this.p=null;
  53.         this.q=null;
  54.         this.dmp1=null;
  55.         this.dmq1=null;
  56.         this.coeff=null
  57.     }
  58.     function q(z,t){
  59.         if(z!=null&&t!=null&&z.length>0&&t.length>0){
  60.             this.n=h(z,16);
  61.             this.e=parseInt(t,16)
  62.         }
  63.         else{
  64.             uv_alert("Invalid RSA public key")
  65.         }
  66.         
  67.     }
  68.     function Y(t){
  69.         return t.modPowInt(this.e,this.n)
  70.     }
  71.     function r(aC){
  72.         var t=ah(aC,(this.n.bitLength()+7)>>3);
  73.         if(t==null){
  74.             return null
  75.         }
  76.         var aD=this.doPublic(t);
  77.         if(aD==null){
  78.             return null
  79.         }
  80.         var z=aD.toString(16);
  81.         if((z.length&1)==0){
  82.             return z
  83.         }
  84.         else{
  85.             return"0"+z
  86.         }
  87.         
  88.     }
  89.     N.prototype.doPublic=Y;
  90.     N.prototype.setPublic=q;
  91.     N.prototype.encrypt=r;
  92.     var ay;
  93.     var ak=244837814094590;
  94.     var ab=((ak&16777215)==15715070);
  95.     function au(z,t,aC){
  96.         if(z!=null){
  97.             if("number"==typeof z){
  98.                 this.fromNumber(z,t,aC)
  99.             }
  100.             else{
  101.                 if(t==null&&"string"!=typeof z){
  102.                     this.fromString(z,256)
  103.                 }
  104.                 else{
  105.                     this.fromString(z,t)
  106.                 }
  107.                
  108.             }
  109.             
  110.         }
  111.         
  112.     }
  113.     function j(){
  114.         return new au(null)
  115.     }
  116.     function b(aE,t,z,aD,aG,aF){
  117.         while(--aF>=0){
  118.             var aC=t*this[aE++]+z[aD]+aG;
  119.             aG=Math.floor(aC/67108864);
  120.             z[aD++]=aC&67108863
  121.         }
  122.         return aG
  123.     }
  124.     function aA(aE,aJ,aK,aD,aH,t){
  125.         var aG=aJ&32767,aI=aJ>>15;
  126.         while(--t>=0){
  127.             var aC=this[aE]&32767;
  128.             var aF=this[aE++]>>15;
  129.             var z=aI*aC+aF*aG;
  130.             aC=aG*aC+((z&32767)<<15)+aK[aD]+(aH&1073741823);
  131.             aH=(aC>>>30)+(z>>>15)+aI*aF+(aH>>>30);
  132.             aK[aD++]=aC&1073741823
  133.         }
  134.         return aH
  135.     }
  136.     function az(aE,aJ,aK,aD,aH,t){
  137.         var aG=aJ&16383,aI=aJ>>14;
  138.         while(--t>=0){
  139.             var aC=this[aE]&16383;
  140.             var aF=this[aE++]>>14;
  141.             var z=aI*aC+aF*aG;
  142.             aC=aG*aC+((z&16383)<<14)+aK[aD]+aH;
  143.             aH=(aC>>28)+(z>>14)+aI*aF;
  144.             aK[aD++]=aC&268435455
  145.         }
  146.         return aH
  147.     }
  148.     if(ab&&(navigator.appName=="Microsoft Internet Explorer")){
  149.         au.prototype.am=aA;
  150.         ay=30
  151.     }
  152.     else{
  153.         if(ab&&(navigator.appName!="Netscape")){
  154.             au.prototype.am=b;
  155.             ay=26
  156.         }
  157.         else{
  158.             au.prototype.am=az;
  159.             ay=28
  160.         }
  161.         
  162.     }
  163.     au.prototype.DB=ay;
  164.     au.prototype.DM=((1<<ay)-1);
  165.     au.prototype.DV=(1<<ay);
  166.     var ac=52;
  167.     au.prototype.FV=Math.pow(2,ac);
  168.     au.prototype.F1=ac-ay;
  169.     au.prototype.F2=2*ay-ac;
  170.     var ag="0123456789abcdefghijklmnopqrstuvwxyz";
  171.     var ai=new Array();
  172.     var ar,x;
  173.     ar="0".charCodeAt(0);
  174.     for(x=0;
  175.     x<=9;
  176.     ++x){
  177.         ai[ar++]=x
  178.     }
  179.     ar="a".charCodeAt(0);
  180.     for(x=10;
  181.     x<36;
  182.     ++x){
  183.         ai[ar++]=x
  184.     }
  185.     ar="A".charCodeAt(0);
  186.     for(x=10;
  187.     x<36;
  188.     ++x){
  189.         ai[ar++]=x
  190.     }
  191.     function aB(t){
  192.         return ag.charAt(t)
  193.     }
  194.     function C(z,t){
  195.         var aC=ai[z.charCodeAt(t)];
  196.         return(aC==null)?-1:aC
  197.     }
  198.     function aa(z){
  199.         for(var t=this.t-1;
  200.         t>=0;
  201.         --t){
  202.             z[t]=this[t]
  203.         }
  204.         z.t=this.t;
  205.         z.s=this.s
  206.     }
  207.     function p(t){
  208.         this.t=1;
  209.         this.s=(t<0)?-1:0;
  210.         if(t>0){
  211.             this[0]=t
  212.         }
  213.         else{
  214.             if(t<-1){
  215.                 this[0]=t+DV
  216.             }
  217.             else{
  218.                 this.t=0
  219.             }
  220.             
  221.         }
  222.         
  223.     }
  224.     function c(t){
  225.         var z=j();
  226.         z.fromInt(t);
  227.         return z
  228.     }
  229.     function y(aG,z){
  230.         var aD;
  231.         if(z==16){
  232.             aD=4
  233.         }
  234.         else{
  235.             if(z==8){
  236.                 aD=3
  237.             }
  238.             else{
  239.                 if(z==256){
  240.                     aD=8
  241.                 }
  242.                 else{
  243.                     if(z==2){
  244.                         aD=1
  245.                     }
  246.                     else{
  247.                         if(z==32){
  248.                             aD=5
  249.                         }
  250.                         else{
  251.                             if(z==4){
  252.                                 aD=2
  253.                             }
  254.                             else{
  255.                                 this.fromRadix(aG,z);
  256.                                 return
  257.                             }
  258.                            
  259.                         }
  260.                         
  261.                     }
  262.                     
  263.                 }
  264.                
  265.             }
  266.             
  267.         }
  268.         this.t=0;
  269.         this.s=0;
  270.         var aF=aG.length,aC=false,aE=0;
  271.         while(--aF>=0){
  272.             var t=(aD==8)?aG[aF]&255:C(aG,aF);
  273.             if(t<0){
  274.                 if(aG.charAt(aF)=="-"){
  275.                     aC=true
  276.                 }
  277.                 continue
  278.             }
  279.             aC=false;
  280.             if(aE==0){
  281.                 this[this.t++]=t
  282.             }
  283.             else{
  284.                 if(aE+aD>this.DB){
  285.                     this[this.t-1]|=(t&((1<<(this.DB-aE))-1))<<aE;
  286.                     this[this.t++]=(t>>(this.DB-aE))
  287.                 }
  288.                 else{
  289.                     this[this.t-1]|=t<<aE
  290.                 }
  291.                
  292.             }
  293.             aE+=aD;
  294.             if(aE>=this.DB){
  295.                 aE-=this.DB
  296.             }
  297.             
  298.         }
  299.         if(aD==8&&(aG[0]&128)!=0){
  300.             this.s=-1;
  301.             if(aE>0){
  302.                 this[this.t-1]|=((1<<(this.DB-aE))-1)<<aE
  303.             }
  304.             
  305.         }
  306.         this.clamp();
  307.         if(aC){
  308.             au.ZERO.subTo(this,this)
  309.         }
  310.         
  311.     }
  312.     function Q(){
  313.         var t=this.s&this.DM;
  314.         while(this.t>0&&this[this.t-1]==t){
  315.             --this.t
  316.         }
  317.         
  318.     }
  319.     function s(z){
  320.         if(this.s<0){
  321.             return"-"+this.negate().toString(z)
  322.         }
  323.         var aC;
  324.         if(z==16){
  325.             aC=4
  326.         }
  327.         else{
  328.             if(z==8){
  329.                 aC=3
  330.             }
  331.             else{
  332.                 if(z==2){
  333.                     aC=1
  334.                 }
  335.                 else{
  336.                     if(z==32){
  337.                         aC=5
  338.                     }
  339.                     else{
  340.                         if(z==4){
  341.                             aC=2
  342.                         }
  343.                         else{
  344.                             return this.toRadix(z)
  345.                         }
  346.                         
  347.                     }
  348.                     
  349.                 }
  350.                
  351.             }
  352.             
  353.         }
  354.         var aE=(1<<aC)-1,aH,t=false,aF="",aD=this.t;
  355.         var aG=this.DB-(aD*this.DB)%aC;
  356.         if(aD-->0){
  357.             if(aG<this.DB&&(aH=this[aD]>>aG)>0){
  358.                 t=true;
  359.                 aF=aB(aH)
  360.             }
  361.             while(aD>=0){
  362.                 if(aG<aC){
  363.                     aH=(this[aD]&((1<<aG)-1))<<(aC-aG);
  364.                     aH|=this[--aD]>>(aG+=this.DB-aC)
  365.                 }
  366.                 else{
  367.                     aH=(this[aD]>>(aG-=aC))&aE;
  368.                     if(aG<=0){
  369.                         aG+=this.DB;
  370.                         --aD
  371.                     }
  372.                     
  373.                 }
  374.                 if(aH>0){
  375.                     t=true
  376.                 }
  377.                 if(t){
  378.                     aF+=aB(aH)
  379.                 }
  380.                
  381.             }
  382.             
  383.         }
  384.         return t?aF:"0"
  385.     }
  386.     function T(){
  387.         var t=j();
  388.         au.ZERO.subTo(this,t);
  389.         return t
  390.     }
  391.     function an(){
  392.         return(this.s<0)?this.negate():this
  393.     }
  394.     function I(t){
  395.         var aC=this.s-t.s;
  396.         if(aC!=0){
  397.             return aC
  398.         }
  399.         var z=this.t;
  400.         aC=z-t.t;
  401.         if(aC!=0){
  402.             return aC
  403.         }
  404.         while(--z>=0){
  405.             if((aC=this[z]-t[z])!=0){
  406.                 return aC
  407.             }
  408.             
  409.         }
  410.         return 0
  411.     }
  412.     function l(z){
  413.         var aD=1,aC;
  414.         if((aC=z>>>16)!=0){
  415.             z=aC;
  416.             aD+=16
  417.         }
  418.         if((aC=z>>8)!=0){
  419.             z=aC;
  420.             aD+=8
  421.         }
  422.         if((aC=z>>4)!=0){
  423.             z=aC;
  424.             aD+=4
  425.         }
  426.         if((aC=z>>2)!=0){
  427.             z=aC;
  428.             aD+=2
  429.         }
  430.         if((aC=z>>1)!=0){
  431.             z=aC;
  432.             aD+=1
  433.         }
  434.         return aD
  435.     }
  436.     function w(){
  437.         if(this.t<=0){
  438.             return 0
  439.         }
  440.         return this.DB*(this.t-1)+l(this[this.t-1]^(this.s&this.DM))
  441.     }
  442.     function at(aC,z){
  443.         var t;
  444.         for(t=this.t-1;
  445.         t>=0;
  446.         --t){
  447.             z[t+aC]=this[t]
  448.         }
  449.         for(t=aC-1;
  450.         t>=0;
  451.         --t){
  452.             z[t]=0
  453.         }
  454.         z.t=this.t+aC;
  455.         z.s=this.s
  456.     }
  457.     function Z(aC,z){
  458.         for(var t=aC;
  459.         t<this.t;
  460.         ++t){
  461.             z[t-aC]=this[t]
  462.         }
  463.         z.t=Math.max(this.t-aC,0);
  464.         z.s=this.s
  465.     }
  466.     function v(aH,aD){
  467.         var z=aH%this.DB;
  468.         var t=this.DB-z;
  469.         var aF=(1<<t)-1;
  470.         var aE=Math.floor(aH/this.DB),aG=(this.s<<z)&this.DM,aC;
  471.         for(aC=this.t-1;
  472.         aC>=0;
  473.         --aC){
  474.             aD[aC+aE+1]=(this[aC]>>t)|aG;
  475.             aG=(this[aC]&aF)<<z
  476.         }
  477.         for(aC=aE-1;
  478.         aC>=0;
  479.         --aC){
  480.             aD[aC]=0
  481.         }
  482.         aD[aE]=aG;
  483.         aD.t=this.t+aE+1;
  484.         aD.s=this.s;
  485.         aD.clamp()
  486.     }
  487.     function n(aG,aD){
  488.         aD.s=this.s;
  489.         var aE=Math.floor(aG/this.DB);
  490.         if(aE>=this.t){
  491.             aD.t=0;
  492.             return
  493.         }
  494.         var z=aG%this.DB;
  495.         var t=this.DB-z;
  496.         var aF=(1<<z)-1;
  497.         aD[0]=this[aE]>>z;
  498.         for(var aC=aE+1;
  499.         aC<this.t;
  500.         ++aC){
  501.             aD[aC-aE-1]|=(this[aC]&aF)<<t;
  502.             aD[aC-aE]=this[aC]>>z
  503.         }
  504.         if(z>0){
  505.             aD[this.t-aE-1]|=(this.s&aF)<<t
  506.         }
  507.         aD.t=this.t-aE;
  508.         aD.clamp()
  509.     }
  510.     function ad(z,aD){
  511.         var aC=0,aE=0,t=Math.min(z.t,this.t);
  512.         while(aC<t){
  513.             aE+=this[aC]-z[aC];
  514.             aD[aC++]=aE&this.DM;
  515.             aE>>=this.DB
  516.         }
  517.         if(z.t<this.t){
  518.             aE-=z.s;
  519.             while(aC<this.t){
  520.                 aE+=this[aC];
  521.                 aD[aC++]=aE&this.DM;
  522.                 aE>>=this.DB
  523.             }
  524.             aE+=this.s
  525.         }
  526.         else{
  527.             aE+=this.s;
  528.             while(aC<z.t){
  529.                 aE-=z[aC];
  530.                 aD[aC++]=aE&this.DM;
  531.                 aE>>=this.DB
  532.             }
  533.             aE-=z.s
  534.         }
  535.         aD.s=(aE<0)?-1:0;
  536.         if(aE<-1){
  537.             aD[aC++]=this.DV+aE
  538.         }
  539.         else{
  540.             if(aE>0){
  541.                 aD[aC++]=aE
  542.             }
  543.             
  544.         }
  545.         aD.t=aC;
  546.         aD.clamp()
  547.     }
  548.     function F(z,aD){
  549.         var t=this.abs(),aE=z.abs();
  550.         var aC=t.t;
  551.         aD.t=aC+aE.t;
  552.         while(--aC>=0){
  553.             aD[aC]=0
  554.         }
  555.         for(aC=0;
  556.         aC<aE.t;
  557.         ++aC){
  558.             aD[aC+t.t]=t.am(0,aE[aC],aD,aC,0,t.t)
  559.         }
  560.         aD.s=0;
  561.         aD.clamp();
  562.         if(this.s!=z.s){
  563.             au.ZERO.subTo(aD,aD)
  564.         }
  565.         
  566.     }
  567.     function S(aC){
  568.         var t=this.abs();
  569.         var z=aC.t=2*t.t;
  570.         while(--z>=0){
  571.             aC[z]=0
  572.         }
  573.         for(z=0;
  574.         z<t.t-1;
  575.         ++z){
  576.             var aD=t.am(z,t[z],aC,2*z,0,1);
  577.             if((aC[z+t.t]+=t.am(z+1,2*t[z],aC,2*z+1,aD,t.t-z-1))>=t.DV){
  578.                 aC[z+t.t]-=t.DV;
  579.                 aC[z+t.t+1]=1
  580.             }
  581.             
  582.         }
  583.         if(aC.t>0){
  584.             aC[aC.t-1]+=t.am(z,t[z],aC,2*z,0,1)
  585.         }
  586.         aC.s=0;
  587.         aC.clamp()
  588.     }
  589.     function G(aK,aH,aG){
  590.         var aQ=aK.abs();
  591.         if(aQ.t<=0){
  592.             return
  593.         }
  594.         var aI=this.abs();
  595.         if(aI.t<aQ.t){
  596.             if(aH!=null){
  597.                 aH.fromInt(0)
  598.             }
  599.             if(aG!=null){
  600.                 this.copyTo(aG)
  601.             }
  602.             return
  603.         }
  604.         if(aG==null){
  605.             aG=j()
  606.         }
  607.         var aE=j(),z=this.s,aJ=aK.s;
  608.         var aP=this.DB-l(aQ[aQ.t-1]);
  609.         if(aP>0){
  610.             aQ.lShiftTo(aP,aE);
  611.             aI.lShiftTo(aP,aG)
  612.         }
  613.         else{
  614.             aQ.copyTo(aE);
  615.             aI.copyTo(aG)
  616.         }
  617.         var aM=aE.t;
  618.         var aC=aE[aM-1];
  619.         if(aC==0){
  620.             return
  621.         }
  622.         var aL=aC*(1<<this.F1)+((aM>1)?aE[aM-2]>>this.F2:0);
  623.         var aT=this.FV/aL,aS=(1<<this.F1)/aL,aR=1<<this.F2;
  624.         var aO=aG.t,aN=aO-aM,aF=(aH==null)?j():aH;
  625.         aE.dlShiftTo(aN,aF);
  626.         if(aG.compareTo(aF)>=0){
  627.             aG[aG.t++]=1;
  628.             aG.subTo(aF,aG)
  629.         }
  630.         au.ONE.dlShiftTo(aM,aF);
  631.         aF.subTo(aE,aE);
  632.         while(aE.t<aM){
  633.             aE[aE.t++]=0
  634.         }
  635.         while(--aN>=0){
  636.             var aD=(aG[--aO]==aC)?this.DM:Math.floor(aG[aO]*aT+(aG[aO-1]+aR)*aS);
  637.             if((aG[aO]+=aE.am(0,aD,aG,aN,0,aM))<aD){
  638.                 aE.dlShiftTo(aN,aF);
  639.                 aG.subTo(aF,aG);
  640.                 while(aG[aO]<--aD){
  641.                     aG.subTo(aF,aG)
  642.                 }
  643.                
  644.             }
  645.             
  646.         }
  647.         if(aH!=null){
  648.             aG.drShiftTo(aM,aH);
  649.             if(z!=aJ){
  650.                 au.ZERO.subTo(aH,aH)
  651.             }
  652.             
  653.         }
  654.         aG.t=aM;
  655.         aG.clamp();
  656.         if(aP>0){
  657.             aG.rShiftTo(aP,aG)
  658.         }
  659.         if(z<0){
  660.             au.ZERO.subTo(aG,aG)
  661.         }
  662.         
  663.     }
  664.     function P(t){
  665.         var z=j();
  666.         this.abs().divRemTo(t,null,z);
  667.         if(this.s<0&&z.compareTo(au.ZERO)>0){
  668.             t.subTo(z,z)
  669.         }
  670.         return z
  671.     }
  672.     function M(t){
  673.         this.m=t
  674.     }
  675.     function X(t){
  676.         if(t.s<0||t.compareTo(this.m)>=0){
  677.             return t.mod(this.m)
  678.         }
  679.         else{
  680.             return t
  681.         }
  682.         
  683.     }
  684.     function am(t){
  685.         return t
  686.     }
  687.     function L(t){
  688.         t.divRemTo(this.m,null,t)
  689.     }
  690.     function J(t,aC,z){
  691.         t.multiplyTo(aC,z);
  692.         this.reduce(z)
  693.     }
  694.     function aw(t,z){
  695.         t.squareTo(z);
  696.         this.reduce(z)
  697.     }
  698.     M.prototype.convert=X;
  699.     M.prototype.revert=am;
  700.     M.prototype.reduce=L;
  701.     M.prototype.mulTo=J;
  702.     M.prototype.sqrTo=aw;
  703.     function D(){
  704.         if(this.t<1){
  705.             return 0
  706.         }
  707.         var t=this[0];
  708.         if((t&1)==0){
  709.             return 0
  710.         }
  711.         var z=t&3;
  712.         z=(z*(2-(t&15)*z))&15;
  713.         z=(z*(2-(t&255)*z))&255;
  714.         z=(z*(2-(((t&65535)*z)&65535)))&65535;
  715.         z=(z*(2-t*z%this.DV))%this.DV;
  716.         return(z>0)?this.DV-z:-z
  717.     }
  718.     function g(t){
  719.         this.m=t;
  720.         this.mp=t.invDigit();
  721.         this.mpl=this.mp&32767;
  722.         this.mph=this.mp>>15;
  723.         this.um=(1<<(t.DB-15))-1;
  724.         this.mt2=2*t.t
  725.     }
  726.     function al(t){
  727.         var z=j();
  728.         t.abs().dlShiftTo(this.m.t,z);
  729.         z.divRemTo(this.m,null,z);
  730.         if(t.s<0&&z.compareTo(au.ZERO)>0){
  731.             this.m.subTo(z,z)
  732.         }
  733.         return z
  734.     }
  735.     function av(t){
  736.         var z=j();
  737.         t.copyTo(z);
  738.         this.reduce(z);
  739.         return z
  740.     }
  741.     function R(t){
  742.         while(t.t<=this.mt2){
  743.             t[t.t++]=0
  744.         }
  745.         for(var aC=0;
  746.         aC<this.m.t;
  747.         ++aC){
  748.             var z=t[aC]&32767;
  749.             var aD=(z*this.mpl+(((z*this.mph+(t[aC]>>15)*this.mpl)&this.um)<<15))&t.DM;
  750.             z=aC+this.m.t;
  751.             t[z]+=this.m.am(0,aD,t,aC,0,this.m.t);
  752.             while(t[z]>=t.DV){
  753.                 t[z]-=t.DV;
  754.                 t[++z]++
  755.             }
  756.             
  757.         }
  758.         t.clamp();
  759.         t.drShiftTo(this.m.t,t);
  760.         if(t.compareTo(this.m)>=0){
  761.             t.subTo(this.m,t)
  762.         }
  763.         
  764.     }
  765.     function ao(t,z){
  766.         t.squareTo(z);
  767.         this.reduce(z)
  768.     }
  769.     function B(t,aC,z){
  770.         t.multiplyTo(aC,z);
  771.         this.reduce(z)
  772.     }
  773.     g.prototype.convert=al;
  774.     g.prototype.revert=av;
  775.     g.prototype.reduce=R;
  776.     g.prototype.mulTo=B;
  777.     g.prototype.sqrTo=ao;
  778.     function k(){
  779.         return((this.t>0)?(this[0]&1):this.s)==0
  780.     }
  781.     function A(aH,aI){
  782.         if(aH>4294967295||aH<1){
  783.             return au.ONE
  784.         }
  785.         var aG=j(),aC=j(),aF=aI.convert(this),aE=l(aH)-1;
  786.         aF.copyTo(aG);
  787.         while(--aE>=0){
  788.             aI.sqrTo(aG,aC);
  789.             if((aH&(1<<aE))>0){
  790.                 aI.mulTo(aC,aF,aG)
  791.             }
  792.             else{
  793.                 var aD=aG;
  794.                 aG=aC;
  795.                 aC=aD
  796.             }
  797.             
  798.         }
  799.         return aI.revert(aG)
  800.     }
  801.     function ap(aC,t){
  802.         var aD;
  803.         if(aC<256||t.isEven()){
  804.             aD=new M(t)
  805.         }
  806.         else{
  807.             aD=new g(t)
  808.         }
  809.         return this.exp(aC,aD)
  810.     }
  811.     au.prototype.copyTo=aa;
  812.     au.prototype.fromInt=p;
  813.     au.prototype.fromString=y;
  814.     au.prototype.clamp=Q;
  815.     au.prototype.dlShiftTo=at;
  816.     au.prototype.drShiftTo=Z;
  817.     au.prototype.lShiftTo=v;
  818.     au.prototype.rShiftTo=n;
  819.     au.prototype.subTo=ad;
  820.     au.prototype.multiplyTo=F;
  821.     au.prototype.squareTo=S;
  822.     au.prototype.divRemTo=G;
  823.     au.prototype.invDigit=D;
  824.     au.prototype.isEven=k;
  825.     au.prototype.exp=A;
  826.     au.prototype.toString=s;
  827.     au.prototype.negate=T;
  828.     au.prototype.abs=an;
  829.     au.prototype.compareTo=I;
  830.     au.prototype.bitLength=w;
  831.     au.prototype.mod=P;
  832.     au.prototype.modPowInt=ap;
  833.     au.ZERO=c(0);
  834.     au.ONE=c(1);
  835.     var o;
  836.     var W;
  837.     var ae;
  838.     function d(t){
  839.         W[ae++]^=t&255;
  840.         W[ae++]^=(t>>8)&255;
  841.         W[ae++]^=(t>>16)&255;
  842.         W[ae++]^=(t>>24)&255;
  843.         if(ae>=O){
  844.             ae-=O
  845.         }
  846.         
  847.     }
  848.     function V(){
  849.         d(new Date().getTime())
  850.     }
  851.     if(W==null){
  852.         W=new Array();
  853.         ae=0;
  854.         var K;
  855.         if(navigator.appName=="Netscape"&&navigator.appVersion<"5"&&window.crypto&&window.crypto.random){
  856.             var H=window.crypto.random(32);
  857.             for(K=0;
  858.             K<H.length;
  859.             ++K){
  860.                 W[ae++]=H.charCodeAt(K)&255
  861.             }
  862.             
  863.         }
  864.         while(ae<O){
  865.             K=Math.floor(65536*Math.random());
  866.             W[ae++]=K>>>8;
  867.             W[ae++]=K&255
  868.         }
  869.         ae=0;
  870.         V()
  871.     }
  872.     function E(){
  873.         if(o==null){
  874.             V();
  875.             o=aq();
  876.             o.init(W);
  877.             for(ae=0;
  878.             ae<W.length;
  879.             ++ae){
  880.                 W[ae]=0
  881.             }
  882.             ae=0
  883.         }
  884.         return o.next()
  885.     }
  886.     function ax(z){
  887.         var t;
  888.         for(t=0;
  889.         t<z.length;
  890.         ++t){
  891.             z[t]=E()
  892.         }
  893.         
  894.     }
  895.     function af(){}af.prototype.nextBytes=ax;
  896.     function m(){
  897.         this.i=0;
  898.         this.j=0;
  899.         this.S=new Array()
  900.     }
  901.     function f(aE){
  902.         var aD,z,aC;
  903.         for(aD=0;
  904.         aD<256;
  905.         ++aD){
  906.             this.S[aD]=aD
  907.         }
  908.         z=0;
  909.         for(aD=0;
  910.         aD<256;
  911.         ++aD){
  912.             z=(z+this.S[aD]+aE[aD%aE.length])&255;
  913.             aC=this.S[aD];
  914.             this.S[aD]=this.S[z];
  915.             this.S[z]=aC
  916.         }
  917.         this.i=0;
  918.         this.j=0
  919.     }
  920.     function a(){
  921.         var z;
  922.         this.i=(this.i+1)&255;
  923.         this.j=(this.j+this.S[this.i])&255;
  924.         z=this.S[this.i];
  925.         this.S[this.i]=this.S[this.j];
  926.         this.S[this.j]=z;
  927.         return this.S[(z+this.S[this.i])&255]
  928.     }
  929.     m.prototype.init=f;
  930.     m.prototype.next=a;
  931.     function aq(){
  932.         return new m()
  933.     }
  934.     var O=256;
  935.     function U(aD,aC,z){
  936.         aC="F20CE00BAE5361F8FA3AE9CEFA495362FF7DA1BA628F64A347F0A8C012BF0B254A30CD92ABFFE7A6EE0DC424CB6166F8819EFA5BCCB20EDFB4AD02E412CCF579B1CA711D55B8B0B3AEB60153D5E0693A2A86F3167D7847A0CB8B00004716A9095D9BADC977CBB804DBDCBA6029A9710869A453F27DFDDF83C016D928B3CBF4C7";
  937.         z="3";
  938.         var t=new N();
  939.         t.setPublic(aC,z);
  940.         return t.encrypt(aD)
  941.     }
  942.     return{
  943.         rsa_encrypt:U
  944.     }
  945.    
  946. }
  947. ();
复制代码
发条工具 怎么添加这个对象 调用呢

最佳答案

查看完整内容

改好了 自己看

求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。
友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。

结帖率:100% (17/17)
发表于 2014-12-7 14:06:02 | 显示全部楼层   广东省*
JS.txt (22.87 KB, 下载次数: 33)

评分

参与人数 1荣誉 +3 收起 理由
笨潴 + 3 热心帮助他人,荣誉+3,希望继续努力(*^__^*) 嘻嘻!

查看全部评分

回复

使用道具 举报

结帖率:100% (17/17)
发表于 2014-12-7 14:11:30 | 显示全部楼层   广东省*
这是哪个网站的rsa 我去玩玩

点评

QQ最新算法 笨蛋~   广东省揭阳市  详情 回复 发表于 2014-12-7 14:22
回复

使用道具 举报

结帖率:53% (9/17)
 楼主| 发表于 2014-12-7 14:14:08 | 显示全部楼层   吉林省通化市
ctw507 发表于 2014-12-7 14:11
这是哪个网站的rsa 我去玩玩

TX微博的
回复

使用道具 举报

结帖率:100% (17/17)
发表于 2014-12-7 14:18:03 | 显示全部楼层   广东省*

tx的现在都rsa了的 慢慢玩
回复

使用道具 举报

签到天数: 1 天

发表于 2014-12-7 14:22:25 | 显示全部楼层   广东省揭阳市
ctw507 发表于 2014-12-7 14:11
这是哪个网站的rsa 我去玩玩

QQ最新算法 笨蛋~
回复

使用道具 举报

结帖率:100% (17/17)
发表于 2014-12-7 14:29:35 | 显示全部楼层   广东省*
Hoibben 发表于 2014-12-7 14:22
QQ最新算法 笨蛋~

婶啊 我看了下面他都没有带tea 带md5 所以我才问的 当我看到$.RSA我就怀疑是qq的

点评

说明 你没用心去分析过 都是工具再工具 哪怕是改造过的 你都没印象 真是作孽啊!~   广东省揭阳市  详情 回复 发表于 2014-12-7 14:30
回复

使用道具 举报

签到天数: 1 天

发表于 2014-12-7 14:30:38 | 显示全部楼层   广东省揭阳市
ctw507 发表于 2014-12-7 14:29
婶啊 我看了下面他都没有带tea 带md5 所以我才问的 当我看到$.RSA我就怀疑是qq的

说明 你没用心去分析过 都是工具再工具 哪怕是改造过的 你都没印象 真是作孽啊!~
回复

使用道具 举报

结帖率:100% (17/17)
发表于 2014-12-7 14:31:47 | 显示全部楼层   广东省*
Hoibben 发表于 2014-12-7 14:30
说明 你没用心去分析过 都是工具再工具 哪怕是改造过的 你都没印象 真是作孽啊!~

婶啊 你都不教教我
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表