Do compression and encryption libraries exist in C #?

I want to compress some files (in ZIP ) and encrypt them, if possible, using C #. Is there any way to do this?

Can encryption be done as part of the compression itself?

+3
source share
9 answers

For compression, look at System.IO.Compressionthe namespace and for encryption look System.Security.Cryptography.

+12
source
+7
source

, , .

-, :

  • : , , .
  • Deflate. , Zip . .
  • GZip: , , .

System.IO.Compression Zip. deflate gzip, .

, , , Zip, :

, System.IO.Compression System.Security.Cryptography.

+5

GZipStream - .

, many ways, , System.Security. ( ).

+1

Chilkat .NET .

+1

, , .NET . .

0

, , . , .

0

:

Zip .Net Java

System.IO.Packaging zip .

-1

Source: https://habr.com/ru/post/1696944/


All Articles