Solved

upload the files

Posted on 2009-05-12
1
161 Views
Last Modified: 2013-11-07
Hi All,

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
0
Comment
Question by:KaranGupta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
iHadi earned 500 total points
ID: 24363174
Hi

try encrypting the file after compressing it.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question