Today I ran into different behavior for rsyncrypto on two different machines (both WinXP). I have set up the following structure on both machines.
On one machine everything is working correctly. I can encrypt the file and decrypt it back, giving me the original readable content. But on the other machine I get an error message during the decryption of the file, see output below.
===== BEGIN COMMAND AND OUTPUT ======
D:\Test>"D:\test\RsynCrypto\RsynCrypto.exe" "D:\Test\ClearFiles\testfile.pdf" "D:\Test\EncryptedFiles\testfile.pdf" "D:\Test\keys\testfile.pdf" "D:\Test\Certificate\Cert.crt"
D:\Test>"D:\test\RsynCrypto\RsynCrypto.exe" -d "D:\Test\EncryptedFiles\testfile.pdf" "D:\Test\ClearFiles\testfile.pdf" "D:\Test\keys\testfile.pdf" "D:\Test\Certificate\Cert.key"
Error in encrypted stream:
gzip: stdin: unexpected end of file
===== END COMMAND AND OUTPUT ======
The size of the original cleartext file testfile.pdf is 2014KB, the encrypted version of it is 1573KB. Looks oke for me… After executing the decryption command, only a part of the file is decrypted, since the size of the decrypted file is 27KB (because it raises an error message). Obviously something is wrong here.
My guess is that rsyncrypto is using another (nromal) gzip, which is installed in a different location. Can this be the case? If so, would it be possible to change the code so it automatically uses the gzip.exe which comes with rsyncrypto ?
Any other feedback is welcome.