encryption and compression

  • Thread starter Thread starter VM
  • Start date Start date
V

VM

Does C# work with encryption and compression? I know that there are C#
Encryption class(es) but my client is also interested in compressing the
data. We want to use some encryption in the generated output data ascii
files and also some type of compression since these data files can be huge.

Thanks.
 
Does C# work with encryption and compression? I know that there are C#
Encryption class(es) but my client is also interested in compressing the
data. We want to use some encryption in the generated output data ascii
files and also some type of compression since these data files can be huge.

If you mean "is there any compression functionality in the .NET
framework class library", the answer is "no". However, there are
various freely available 3rd party libraries. SharpZipLib is a pretty
common one:
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
 
If you mean "is there any compression functionality in the .NET
framework class library", the answer is "no".

Are you sure about that?
There is a Compress method in the PassportIdentity class
I haven't used it but it claims to perform compression

look in System.Web.Security.PassportIdentity

Vin
 
Vincent Finn said:
Are you sure about that?
There is a Compress method in the PassportIdentity class
I haven't used it but it claims to perform compression

look in System.Web.Security.PassportIdentity

Well, that may do compression on something, but it looks pretty
specific to Passport (and is far from well documented). It's far from,
say, the java.util.zip package in Java, which is what I think the OP
was after. I suppose taken very literally, I was wrong in that there's
*some* compression functionality in the .NET framework class library,
but there's no generic compression package.
 
Hi VM,

Thank you for posting in the community!

Based on my understanding, you want to do encryption and compression in .Net

===========================================
..Net provides you the encryption function, please refer to:
"Building Secure ASP.NET Applications: Authentication, Authorization, and
Secure Communication --------How To: Create an Encryption Library"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht
ml/SecNetHT10.asp

To do compression in .Net, you can find a lot of Compression component for
..Net, please refer to:
http://www.411asp.net/home/assembly/file/filecomp

Also, you can get some useful information from:
http://www.codeproject.com/csharp/twofish_csharp.asp

==========================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

This response contains a reference to a third-party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft
does not control these sites and has not tested any software or information
found on these sites; therefore, Microsoft cannot make any representations
regarding the quality, safety, or suitability of any software or
information found there. There are inherent dangers in the use of any
software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from
the Internet.
 
The problem that you will have is that encryption will radically increase
the randomness of the data, and frustrate any attempt at compression.

Best Regards
Julian N.
 
Julian Nicholls said:
The problem that you will have is that encryption will radically increase
the randomness of the data, and frustrate any attempt at compression.

Only if you encrypt it and then compress it. If you compress it and
then encrypt it, you'll end up with a significantly less secure bit of
data, but it'll still be small.
 
Yes, definitely. If both absolutely must be done, then it may be acceptable
to compress it and then encrypt the archive, sacrificing some security.

Best Regards
Julian N.
 
Hi VM,

Do you still have any concern?

If you still have anything unclear, please feel free to tell me, we will
help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top