Hi to who ever can help...
I am busy writing an encryption engine that reads a file programmed using VHDL and encrypting it. My problem is that the file uses characters. I managed to find these characters in Word document under Courier New symbols. My encryption engine works on 8 bytes blocks, meaning that I read 8 bytes, encrypt them and save them to the output file. If I read the file using a char variable, the file is not read at all. If I use an int variable it reads and encrypt the file but I am not sure that the encryption operation is then correct because the manipulation of the data now deals with 8 integers and not 8 char characters... Any suggestions? Does anyone know how long are these characters? Can I read them as integers and then convert them to single chars? If yes then how long is an int variable in Visual C++? Any help will be really appreciated!!!
Thanks, Noam.