0

I've got a very long string (512 chars) that is the mod for the RSA key. I have tried converting it to an int, however it throws an overflow exception all the time:

int mod = Int32.Parse(loginData["publickey_mod"], System.Globalization.NumberStyles.HexNumber);

I have also got an exponent in the form of a string (eg "010001"). I have been trying to generate an RSA but the overflow error is bugging me. How can I makse sure that I don't get an overflow error and additionally, how do I construct the RSA of this data in C#?

Daniel A. White
  • 181,601
  • 45
  • 354
  • 430
Thomas Wagenaar
  • 5,696
  • 4
  • 25
  • 60

0 Answers0