Compression and Encryption of files while sending over network

winmantest 0 Reputation points
2024-09-20T10:40:19.3+00:00

Is compression and encryption mandatory when sending files over the network using ASP.NET, or does the ASP.NET web service handle these tasks by default?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,483 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,211 Reputation points
    2024-09-20T15:40:08.1833333+00:00

    Encryption happens if https (ssl) is used. Compression is optional and requires configuring IIS.

    https://learn.microsoft.com/en-us/iis/configuration/system.webserver/httpcompression/

    0 comments No comments

  2. Lan Huang-MSFT 29,336 Reputation points Microsoft Vendor
    2024-09-23T09:56:18.9033333+00:00

    Hi @winmantest,

    Is compression and encryption mandatory when sending files over the network using ASP.NET, or does the ASP.NET web service handle these tasks by default?

    No, it depends on your choice.

    If you want to ensure your files are encrypted over the network, you may want to use https and look into securing your application with TLS using certificates.

    https://learn.microsoft.com/en-us/iis/manage/configuring-security/how-to-set-up-ssl-on-iis

    You can use IIS compression.

    https://learn.microsoft.com/en-us/iis/extensions/iis-compression/iis-compression-overview

    If you want to encrypt the file once you receive it, there are ways to do it, but how to do it depends on the situation.

    You can also do it via code.

    https://learn.microsoft.com/en-us/dotnet/standard/security/encrypting-data

    GzipStream and CryptoStream

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.