By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,889 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,889 IT Pros & Developers. It's quick & easy.

encryption and compression

P: n/a
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.
Nov 15 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
<"VM" <none>> wrote:
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/OpenSourc...b/Default.aspx

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2

P: n/a
On Mon, 23 Feb 2004 14:57:21 -0000, Jon Skeet [C# MVP]
<sk***@pobox.com> wrote:
<"VM" <none>> wrote:
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".


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
Nov 15 '05 #3

P: n/a
Vincent Finn <1@2.com> wrote:
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


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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4

P: n/a

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/de...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.

Nov 15 '05 #5

P: n/a
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.

"VM" <none> wrote in message news:O1***************@tk2msftngp13.phx.gbl...
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.

Nov 15 '05 #6

P: n/a
Julian Nicholls <so*********************@mccueplc.nospam.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #7

P: n/a
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.

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Julian Nicholls <so*********************@mccueplc.nospam.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 15 '05 #8

P: n/a

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.

Nov 15 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.