Hi everyone.. Me again.
I am confused about something so please correct me if I am not making sense.
I have a program which outputs binary output which has been read from a file of encrypted data.
When de-encrypted the output is supposed to represent numbers.
Because it comes out in binary format, viewing it through a hex editor the correct output is revealed. But... when I convert each byte to an int, it comes out with different decimal output to what it is supposed to. Obviously it will interpret the spaces and line feeds as well, but none of the correct data is there once it has been converted to visible decimal output.
How do I convert binary data to decimal output correctly in C++?