473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

encryption and compression

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
8 3715
<"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
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
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

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
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
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
Of course, one could always use other kinds of encryption/encoding/obfuscation techniques such as XOR complement, but this example provides an extremely secure version using methods like Blowfish,...
24
by: c3poptuse | last post by:
Supercomputer and encryption and compression @ rate of 96% Take a document then or a 3D matrix document change it two random or binary code or just a program for 0's and 1's and fold it over and...
1
by: joe | last post by:
Hi does anyone know if there is anycode out there to convert a stream such as a network connection from a compression library to an encryption library. or if there is a compresion lib with...
113
by: Bonj | last post by:
I was in need of an encryption algorithm to the following requirements: 1) Must be capable of encrypting strings to a byte array, and decyrpting back again to the same string 2) Must have the same...
3
by: HateBSOD | last post by:
How does one encrypt a binary file, I have it working with just text any samples or website recomendations would be helpful. Also When you encrypt a file with DES and then want to zip it, the file...
3
by: xanthviper | last post by:
I know this has been probably covered a lot, but hopefully someone can help me out. Awhile back, I was doing some searching on encryption methods and found an example to where you can take very...
2
by: Sumit Gupta | last post by:
Can anyone please tell me how to encrpt string or any kind of Data. Also the Algorithm of Compression. Any Link tutorial etc. Like : Zip or RAR Formats etc.
12
by: Mitchell Vincent | last post by:
As the subject suggests, I'm looking for a compression and encryption component(s) for use with VB.NET. I would rather then be all managed code but will use ActiveX/COM if I have to.. Price is...
3
by: john.f.klein | last post by:
I want to be able to contact my wife via video teleconferencing and see and talk to her and our new baby. For this purpose, I need software and hardware that can allow me to do with secure and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.