473,770 Members | 7,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3743
<"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.co m>
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.co m> 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 PassportIdentit y class
I haven't used it but it claims to perform compression

look in System.Web.Secu rity.PassportId entity

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 PassportIdentit y class
I haven't used it but it claims to perform compression

look in System.Web.Secu rity.PassportId entity


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.co m>
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******** *******@tk2msft ngp13.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************ *********@mccue plc.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.co m>
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.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
Julian Nicholls <so************ *********@mccue plc.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.co m>
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
3277
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, MD5, DES, etc. This took me about 4 hours to figure out and perfect, but the two functions below will work with PHP on many versions of Linux. I have RedHat 9, in this case. I designed this to use a pretty small compression and encryption...
24
2072
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 over like a piece of paper then having the 1 and 0 add each other or the 0,1's canceling each other out 1+0=0 and 0+1=1 1+1=1 0+0=0 if you gave the folds addresses like on a spread sheet there would be no math. First A 1-24 would fold to k 1-24...
1
1511
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 encryption. I am trying to compile vnc and replace the zlib compression with blowfish encryption. i dont see why i cant be done but i cant figure out a way to write a function that will replace zlib encryption with blowfish compression. i am looking at 2...
113
12353
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 algorithm work with strings that may or may not be unicode 3) Number of bytes back must either be <= number of _TCHARs in * sizeof(_TCHAR), or the relation between output size and input size can be calculated simply. Has to take into account the...
3
372
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 does not get compressed, but with pgp the file gets compressed. Does AES also compress? Thanks, Dj
3
1641
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 large amounts of text and encrypt that down to a very small string. So, basically you could take the US Constitution and get that down to something like a 64 character string. My assumption is that there would be a key invovled. I am looking to...
2
1535
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
1791
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 important, the budget is under $400 for both for a single developer license.. Any and all suggestions are welcome! Thanks! -- - Mitchell
3
2145
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 privacy. As soon we talk of video, anyone, from the ISP to anyone who can snoop, record and store the content for any latter mischief can work on it
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10230
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10004
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9870
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.