N
NinjaFridge
Unconfirmed Member
To get an indvidual character of a string, you can use
Code:myString.charAt(index)
You'll also need to know that the numerical value of a character in Java is its ascii value. So basically all you need to do is cast the character to int, and you'll have the ascii value.
I assume anArray is specific to the problem you're trying to solve?
If I understand things correctly, you'll need a for-loop that wraps the code you have, going through the input string and setting the m value for each index.
I'm working on RSA for a group project. The anArray contains the binary for the value of e(27) which is used in part of the calculation for encrypting the letter.
I think I've made some progress. I'm in a better position than I was in yesterday which is good.
Thanks for the help btw.