I'm trying to do an encryption. I have this message: "hello world"
I am supposed to encrypt and decrypt that character by character.
So, the letter 'h' as a char may equal 97, and so on.
I want to make 97 a BigInteger, and then perform arithmetic on that to encrypt it.
I can turn the String into a char array.
I can turn the char array into an int array.
I cannot turn the int array into a BigInteger array.
Mind you, I need to use the BigInteger.modPow(e,n) function in order to perform the encryption, so it must ultimately become a BigInteger.
And, even if I did make the conversion, how would I convert it back?
Looked everywhere online for over an hour, couldn't find anything that makes sense.
Thanks in advance.