binary file sent from windows -> linux help needed
I am sending an encrypted binary file over tcp/ip form windows to linux. When I get into linux and try to run mcrypt to decrypt the file I get "wrong key" error. I am wondering somehow if the file is being corrupted because of the different platforms? Here are some facts I do know:
1. This works with the exact same code windows->windows
2. My file where I write the binary form the tcp/ip stream looks like this:
Re: binary file sent from windows -> linux help needed
The most common reason why using multiple lines would cause a problem is differing newline conventions between the platforms. However, if you're opening all your files (for reading and writing) in binary mode, that shouldn't be a problem.....