using Org.BouncyCastle.Math;
string p = "E7A69EBDF105F2A6BBDEAD7E798F76A209AD73FB466431E2E7352ED262F8C558F10BEFEA977DE9E21DCEE9B04D245F300ECCBBA03E72630556D011023F9E857F";
BigInteger P= new BigInteger(p);
throwing Exception
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffe
r& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo in
fo)
at System.Int32.Parse(String s, NumberStyles style)
at Org.BouncyCastle.Math.BigInteger..ctor(String str, Int32 radix)
at Org.BouncyCastle.Math.BigInteger..ctor(String value)
what’s wrong here?
If your number string is in hexadecimal, you’ll need to specify the radix in the constructor as: