Encrypting the source code

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Encrypting the source code

    Hello everybody,

    I have deployed an ASP.NET application for one of our clients, is there a
    way to hide or encrypt the source code of our application (C# code behind)
    from being diplayed by anyone else?

    Thanks.


    Mohammad Samara Guest

  2. Similar Questions and Discussions

    1. Encrypting PERL source code...
      Can anyone suggest where I might be able to find (hopefully a freeware or shareware script..) a program that runs either on a windows system or a...
    2. Why doesn't the Code Completion occur in FlexBuilder IDEwhen source code is in an external file?
      I am seperating my .as from the MXML by using the following in my file.mxml: <mx:Script source="file.as"> When I edit file.as, the code...
    3. Encrypting CF Source Code
      I found a reference in the Knowlede Base to a program called CFCRYPT.EXE that encrypts the source .cfm pages. The reference is quite old and I...
    4. Encrypting CF Code
      Hello all, I have to deploy an application on a server at a hosting company that is known for stealing CF applications from their client?s sites...
    5. SCO, Open Source and the Un*x source code
      On Sat, Jul 19, 2003 at 04:51:08PM +0000, tony@aplawrence.com wrote: .... Isn't SCO claiming that they own all the Unix IP in the world :-). ...
  3. #2

    Default RE: Encrypting the source code

    Mohammad,

    When you deploy an application, you should not deploy source code.

    Jim Cheshire, MCSE, MCSD [MSFT]
    Developer Support
    ASP.NET
    [email]jamesche@online.microsoft.com[/email]

    This post is provided as-is with no warranties and confers no rights.

    --------------------
    >From: "Mohammad Samara" <mohammad@samara.fslife.co.uk>
    >Subject: Encrypting the source code
    >Date: Fri, 5 Dec 2003 01:05:11 -0000
    >Lines: 9
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.3790.0
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    >Message-ID: <uURPivsuDHA.1340@TK2MSFTNGP09.phx.gbl>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    >NNTP-Posting-Host: 81-178-230-72.dsl.pipex.com 81.178.230.72
    >Path:
    cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP09.
    phx.gbl
    >Xref: cpmsftngxa07.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 7774
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >
    >Hello everybody,
    >
    >I have deployed an ASP.NET application for one of our clients, is there a
    >way to hide or encrypt the source code of our application (C# code behind)
    >from being diplayed by anyone else?
    >
    >Thanks.
    >
    >
    >
    Jim Cheshire [MSFT] Guest

  4. #3

    Default Re: Encrypting the source code

    Mohammad,

    What Jim is saying is: You only need to deploy the following files: *.aspx,
    *.asax, Web.config, and *.dll (from the bin folder); you do not need to
    deploy *.cs, *.vb, *.sln, *.proj, and other files, which are only used by
    VS.NET and are not required by IIS.

    Alek

    "Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
    news:hCF$9U0uDHA.3532@cpmsftngxa07.phx.gbl...
    > Mohammad,
    >
    > When you deploy an application, you should not deploy source code.
    >
    > Jim Cheshire, MCSE, MCSD [MSFT]
    > Developer Support
    > ASP.NET
    > [email]jamesche@online.microsoft.com[/email]
    >
    > This post is provided as-is with no warranties and confers no rights.
    >
    > --------------------
    > >From: "Mohammad Samara" <mohammad@samara.fslife.co.uk>
    > >Subject: Encrypting the source code
    > >Date: Fri, 5 Dec 2003 01:05:11 -0000
    > >Lines: 9
    > >X-Priority: 3
    > >X-MSMail-Priority: Normal
    > >X-Newsreader: Microsoft Outlook Express 6.00.3790.0
    > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    > >Message-ID: <uURPivsuDHA.1340@TK2MSFTNGP09.phx.gbl>
    > >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    > >NNTP-Posting-Host: 81-178-230-72.dsl.pipex.com 81.178.230.72
    > >Path:
    >
    cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP09.
    > phx.gbl
    > >Xref: cpmsftngxa07.phx.gbl
    > microsoft.public.dotnet.framework.aspnet.security: 7774
    > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    > >
    > >Hello everybody,
    > >
    > >I have deployed an ASP.NET application for one of our clients, is there a
    > >way to hide or encrypt the source code of our application (C# code
    behind)
    > >from being diplayed by anyone else?
    > >
    > >Thanks.
    > >
    > >
    > >
    >

    Alek Davis Guest

  5. #4

    Default Re: Encrypting the source code

    Moveover, if you are worried about someone getting into the source in the
    dll then you could always use the community obfuscator (did i spell that
    right) that comes with vs.net 2003..

    Hope this helps!


    "Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in message
    news:uPWfUe5uDHA.2132@TK2MSFTNGP10.phx.gbl...
    > Mohammad,
    >
    > What Jim is saying is: You only need to deploy the following files:
    *.aspx,
    > *.asax, Web.config, and *.dll (from the bin folder); you do not need to
    > deploy *.cs, *.vb, *.sln, *.proj, and other files, which are only used by
    > VS.NET and are not required by IIS.
    >
    > Alek
    >
    > "Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
    > news:hCF$9U0uDHA.3532@cpmsftngxa07.phx.gbl...
    > > Mohammad,
    > >
    > > When you deploy an application, you should not deploy source code.
    > >
    > > Jim Cheshire, MCSE, MCSD [MSFT]
    > > Developer Support
    > > ASP.NET
    > > [email]jamesche@online.microsoft.com[/email]
    > >
    > > This post is provided as-is with no warranties and confers no rights.
    > >
    > > --------------------
    > > >From: "Mohammad Samara" <mohammad@samara.fslife.co.uk>
    > > >Subject: Encrypting the source code
    > > >Date: Fri, 5 Dec 2003 01:05:11 -0000
    > > >Lines: 9
    > > >X-Priority: 3
    > > >X-MSMail-Priority: Normal
    > > >X-Newsreader: Microsoft Outlook Express 6.00.3790.0
    > > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    > > >Message-ID: <uURPivsuDHA.1340@TK2MSFTNGP09.phx.gbl>
    > > >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    > > >NNTP-Posting-Host: 81-178-230-72.dsl.pipex.com 81.178.230.72
    > > >Path:
    > >
    >
    cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP09.
    > > phx.gbl
    > > >Xref: cpmsftngxa07.phx.gbl
    > > microsoft.public.dotnet.framework.aspnet.security: 7774
    > > >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    > > >
    > > >Hello everybody,
    > > >
    > > >I have deployed an ASP.NET application for one of our clients, is there
    a
    > > >way to hide or encrypt the source code of our application (C# code
    > behind)
    > > >from being diplayed by anyone else?
    > > >
    > > >Thanks.
    > > >
    > > >
    > > >
    > >
    >
    >

    Daniel J Rodriguez Guest

  6. #5

    Default Re: Encrypting the source code

    hai

    Obfuscators make it harder to decompile .NET IL into C#
    code.

    For more info on "Obfuscators", check
    [url]http://www.gotdotnet.com/team/csharp/tools/default.aspx[/url]

    But if u deploy the following files:
    *.aspx, *.asax, Web.config, and *.dll (from the bin
    folder), I think there is no need for Obfuscators.

    warm regards,
    Arun Ganesh.
    ..NET MVP
    >-----Original Message-----
    >Moveover, if you are worried about someone getting into
    the source in the
    >dll then you could always use the community obfuscator
    (did i spell that
    >right) that comes with vs.net 2003..
    >
    >Hope this helps!
    >
    >deploy the following files:
    >*.aspx,
    >> *.asax, Web.config, and *.dll (from the bin folder);
    >"Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com>
    wrote in message
    >news:uPWfUe5uDHA.2132@TK2MSFTNGP10.phx.gbl...
    >> Mohammad,
    >>
    >> What Jim is saying is: You only need to you do not
    need to
    >> deploy *.cs, *.vb, *.sln, *.proj, and other files,
    which are only used by
    >> VS.NET and are not required by IIS.
    >>
    >> Alek
    >>
    >> "Jim Cheshire [MSFT]" <jamesche@online.microsoft.com>
    wrote in message
    >> news:hCF$9U0uDHA.3532@cpmsftngxa07.phx.gbl...
    >> > Mohammad,
    >> >
    >> > When you deploy an application, you should not
    deploy source code.
    >> >
    >> > Jim Cheshire, MCSE, MCSD [MSFT]
    >> > Developer Support
    >> > ASP.NET
    >> > [email]jamesche@online.microsoft.com[/email]
    >> >
    >> > This post is provided as-is with no warranties and
    confers no rights.
    >> >
    >> > --------------------
    >> > >From: "Mohammad Samara"
    <mohammad@samara.fslife.co.uk>
    >> > >Subject: Encrypting the source code
    >> > >Date: Fri, 5 Dec 2003 01:05:11 -0000
    >> > >Lines: 9
    >> > >X-Priority: 3
    >> > >X-MSMail-Priority: Normal
    >> > >X-Newsreader: Microsoft Outlook Express 6.00.3790.0
    >> > >X-MimeOLE: Produced By Microsoft MimeOLE
    V6.00.3790.0
    >> > >Message-ID: <uURPivsuDHA.1340@TK2MSFTNGP09.phx.gbl>
    >> > >Newsgroups:
    microsoft.public.dotnet.framework.aspnet.security
    >> > >NNTP-Posting-Host: 81-178-230-72.dsl.pipex.com
    81.178.230.72
    >> > >Path:
    >> >
    >>
    >cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!
    TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.
    >> > phx.gbl
    >> > >Xref: cpmsftngxa07.phx.gbl
    >> >
    microsoft.public.dotnet.framework.aspnet.security: 7774
    >> > >X-Tomcat-NG:
    microsoft.public.dotnet.framework.aspnet.security
    >> > >
    >> > >Hello everybody,
    >> > >
    >> > >I have deployed an ASP.NET application for one of
    our clients, is there
    >a
    >> > >way to hide or encrypt the source code of our
    application (C# code
    >> behind)
    >> > >from being diplayed by anyone else?
    >> > >
    >> > >Thanks.
    >> > >
    >> > >
    >> > >
    >> >
    >>
    >>
    >
    >
    >.
    >
    G.Gnana Arun Ganesh Guest

  7. #6

    Default Re: Encrypting the source code

    One thing that might help Mohammad is to read the documentation on the
    different options available when copying projects. If you choose "Only
    files needed to run this application", VS.NET will only copy over those
    files with a Build Action of Content. Your source files will have a Build
    Action of Compile and will not be copied.

    Jim Cheshire, MCSE, MCSD [MSFT]
    Developer Support
    ASP.NET
    [email]jamesche@online.microsoft.com[/email]

    This post is provided as-is with no warranties and confers no rights.

    --------------------
    >Content-Class: urn:content-classes:message
    >From: "G.Gnana Arun Ganesh" <ggarung@rediffmail.com>
    >Sender: "G.Gnana Arun Ganesh" <ggarung@rediffmail.com>
    >References: <uURPivsuDHA.1340@TK2MSFTNGP09.phx.gbl>
    <hCF$9U0uDHA.3532@cpmsftngxa07.phx.gbl>
    <uPWfUe5uDHA.2132@TK2MSFTNGP10.phx.gbl>
    <eCgfnE8uDHA.3224@tk2msftngp13.phx.gbl>
    >Subject: Re: Encrypting the source code
    >Date: Tue, 9 Dec 2003 08:11:43 -0800
    >Lines: 105
    >Message-ID: <103b01c3be6f$232ee8f0$a401280a@phx.gbl>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > charset="iso-8859-1"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    >thread-index: AcO+byMuV3sYf8GGQgS/OPSyy0FbOA==
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    >Path: cpmsftngxa07.phx.gbl
    >Xref: cpmsftngxa07.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 7824
    >NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >
    >hai
    >
    >Obfuscators make it harder to decompile .NET IL into C#
    >code.
    >
    >For more info on "Obfuscators", check
    >[url]http://www.gotdotnet.com/team/csharp/tools/default.aspx[/url]
    >
    >But if u deploy the following files:
    >*.aspx, *.asax, Web.config, and *.dll (from the bin
    >folder), I think there is no need for Obfuscators.
    >
    >warm regards,
    >Arun Ganesh.
    >.NET MVP
    >>-----Original Message-----
    >>Moveover, if you are worried about someone getting into
    >the source in the
    >>dll then you could always use the community obfuscator
    >(did i spell that
    >>right) that comes with vs.net 2003..
    >>
    >>Hope this helps!
    >>
    >>deploy the following files:
    >>*.aspx,
    >>> *.asax, Web.config, and *.dll (from the bin folder);
    >>"Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com>
    >wrote in message
    >>news:uPWfUe5uDHA.2132@TK2MSFTNGP10.phx.gbl...
    >>> Mohammad,
    >>>
    >>> What Jim is saying is: You only need to you do not
    >need to
    >>> deploy *.cs, *.vb, *.sln, *.proj, and other files,
    >which are only used by
    >>> VS.NET and are not required by IIS.
    >>>
    >>> Alek
    >>>
    >>> "Jim Cheshire [MSFT]" <jamesche@online.microsoft.com>
    >wrote in message
    >>> news:hCF$9U0uDHA.3532@cpmsftngxa07.phx.gbl...
    >>> > Mohammad,
    >>> >
    >>> > When you deploy an application, you should not
    >deploy source code.
    >>> >
    >>> > Jim Cheshire, MCSE, MCSD [MSFT]
    >>> > Developer Support
    >>> > ASP.NET
    >>> > [email]jamesche@online.microsoft.com[/email]
    >>> >
    >>> > This post is provided as-is with no warranties and
    >confers no rights.
    >>> >
    >>> > --------------------
    >>> > >From: "Mohammad Samara"
    ><mohammad@samara.fslife.co.uk>
    >>> > >Subject: Encrypting the source code
    >>> > >Date: Fri, 5 Dec 2003 01:05:11 -0000
    >>> > >Lines: 9
    >>> > >X-Priority: 3
    >>> > >X-MSMail-Priority: Normal
    >>> > >X-Newsreader: Microsoft Outlook Express 6.00.3790.0
    >>> > >X-MimeOLE: Produced By Microsoft MimeOLE
    >V6.00.3790.0
    >>> > >Message-ID: <uURPivsuDHA.1340@TK2MSFTNGP09.phx.gbl>
    >>> > >Newsgroups:
    >microsoft.public.dotnet.framework.aspnet.securi ty
    >>> > >NNTP-Posting-Host: 81-178-230-72.dsl.pipex.com
    >81.178.230.72
    >>> > >Path:
    >>> >
    >>>
    >>cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!
    >TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.
    >>> > phx.gbl
    >>> > >Xref: cpmsftngxa07.phx.gbl
    >>> >
    >microsoft.public.dotnet.framework.aspnet.security :7774
    >>> > >X-Tomcat-NG:
    >microsoft.public.dotnet.framework.aspnet.securi ty
    >>> > >
    >>> > >Hello everybody,
    >>> > >
    >>> > >I have deployed an ASP.NET application for one of
    >our clients, is there
    >>a
    >>> > >way to hide or encrypt the source code of our
    >application (C# code
    >>> behind)
    >>> > >from being diplayed by anyone else?
    >>> > >
    >>> > >Thanks.
    >>> > >
    >>> > >
    >>> > >
    >>> >
    >>>
    >>>
    >>
    >>
    >>.
    >>
    >
    Jim Cheshire [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139