Hi Bear/Paul/Henry,
I appreciate all the pointers guys, but not sure I'm making my intentions clear as I'm getting a bit bogged down with understanding how to move data in and out of the arrays.
Essentially, what I'm trying to achieve is this:
Take one of the ten ciphertext, break it into hex chunks, then add each of those chunks to an array of dynamic size (as the ciphertexts are of differing lengths), then add that row of hex to an int[] array (as the number of rows are constant) or a dynamic ArrayList if possible to choose 2 random rows when extracting the data, if this is possible? Once I have each ciphertext broken into chunks and in seperate rows of my array, I can then convert each row into ASCII(UTF-8) and output each elements value as a character (putting this into a temp array for display only), once I have this data, I can then XOR one row against data in another row. The XOR data can then be converted back into ASCII (UTF-8) character sets and this should then provide me with with information I can work with. The problem I had with XORing is that I couldn't XOR the hex values ( using xor = valueA ^ valueB) and had to convert them into integers to allow me to do this, which is why I'm trying to figure out how to use and transfer data to and from dynamically sized arrays.
Well, that's the plan anyway, but I've been struggling with how to get these arrays populated and also how to get the data back out of them. I don't fully understand how the dynamic (ArrayList) arrays work in this way and have been going round in circles trying to get it working (I know, I know, welcome to the world of programming right
). Perhaps there is a better way of doing this than the way I'm approaching the problem?
Thanks,
Michael