I'm writing my magistracy work in cryptography, and today I was trying to get a BigInteger number from the string. But the only way I find to get BigInteger number from the string was
UTF8Encoding Encoding = new UTF8Encoding();
var bytes = Encoding.GetBytes(myString);
var myBigInteger = new BigInteger(bytes);
But this is not that way I need. I need something which will return me exactly BigInteger representation of the string. For example, if I have
var myString = "1234567890";
I want my BigInteger to be
BigInteger bi = 1234567890;