问题描述
下面是对应的解密函数,求对应的加密函数publicstaticstringCodeReturn(stringmCode){string[]astrResult=mCode.Split(newchar[]{'|'});stringstrchr="";longintLength=astrResult.Length/2;if(intLength==0L){return"";}long[]alngrefArray=CreatArray(intLength);if(intLength==0L){return"";}for(inti=0;i<intLength;i++){longs=(((alngrefArray[i]*Convert.ToInt16(astrResult[i]))+Convert.ToInt16(astrResult[(int)((IntPtr)(i+intLength))]))-14L)/0x49L;ASCIIEncodingasciiEncoding=newASCIIEncoding();byte[]byteArray=newbyte[]{(byte)s};stringstrCharacter=asciiEncoding.GetString(byteArray);strchr=strchr+strCharacter;}returnstrchr;}publicstaticlong[]CreatArray(longmlength){long[]mArray=newlong[mlength];mArray[0]=0x34L;if(mlength>1L){mArray[1]=0x21fL;}for(longj=2L;j<mlength;j+=1L){mArray[(int)((IntPtr)j)]=mArray[(int)((IntPtr)(j-1L))]+mArray[(int)((IntPtr)(j-2L))];}returnmArray;}
解决方案
解决方案二:
测试可用再追加分
解决方案三:
木有人来看啊......
解决方案四:
测试可用再追加分