你是想找人帮你把Java转c#,你的题目起的不好,难怪没人理你,重开一题吧

解决方案 »

  1.   

    C#有用来处理位数在64位以上的二进制数的?一般64位以下的用long或者int
      

  2.   

    .NET doesn't have BigInteger class, but see
    C# BigInteger Class
    http://www.codeproject.com/csharp/biginteger.asp
    if it can be approximated with long, try something likepublic static bool verify(String s, String s1)
        {
            String s2 = String.Empty;
            String s3 = String.Empty;
            String s5 = String.Empty;        if(handler == null)
                handler = new YF201RSACipher();  //where is handler being used? long biginteger = Convert.ToInt64(s1);        if(s.Length < 50)
                s2 = s;
            else
                s2 = s.Substring(0, 49);        byte[] abyte0 = System.Text.Encoding.UTF8.GetBytes(s2);        for(int i = 0; i < abyte0.Length ; i++)
            {
                String s4 = abyte0[i].ToString();
                s5 += s4;
            } long biginteger1 = Convert.ToInt64(s5); return biginteger1 == (((long)Math.Pow(biginteger, e)) % n); //where are e and n defined?
        }