I am implementing a functionality where I need to upload some log files on a remote FTP server. There are four log files (each can be upto 20MB in size).
I have successfully implemented the functionality to compress and upload log files to FTP server. I have used "System.IO.Compression.GZipStream" class to perform compression and it has helped me reduce the size of a single log file from 20MB to around 1.5MB.
However, as per the new requirement, I need to encrypt the log files as they contain sensitive information and their security can be compromised when FTP upload is taking place through the network. For being able to achieve this, I used "RijndaelManaged" class to encrypt the log files.
The problem is that encryption is further increasing the size of log files by a factor of around 30% (which increases the size of a 20MB log file to around 26MB). Bigger problem is that compression does not work on encrypted file as its size remains the same even after compressing.
I read a few articles on the web as well as MSDN where people have discussed problems like this. However, I have not been able to find a solution.
Please suggest how to go about it as it is very urgent.
Thanks in advance