Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Encrypting the source code

Reply
Thread Tools

Encrypting the source code

 
 
Mohammad Samara
Guest
Posts: n/a
 
      12-05-2003
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.


 
Reply With Quote
 
 
 
 
Jim Cheshire [MSFT]
Guest
Posts: n/a
 
      12-05-2003
Mohammad,

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

Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
http://www.velocityreviews.com/forums/(E-Mail Removed)

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

--------------------
>From: "Mohammad Samara" <(E-Mail Removed)>
>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: <(E-Mail Removed)>
>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.
>
>
>


 
Reply With Quote
 
 
 
 
Alek Davis
Guest
Posts: n/a
 
      12-06-2003
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]" <(E-Mail Removed)> wrote in message
news:hCF$(E-Mail Removed)...
> Mohammad,
>
> When you deploy an application, you should not deploy source code.
>
> Jim Cheshire, MCSE, MCSD [MSFT]
> Developer Support
> ASP.NET
> (E-Mail Removed)
>
> This post is provided as-is with no warranties and confers no rights.
>
> --------------------
> >From: "Mohammad Samara" <(E-Mail Removed)>
> >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: <(E-Mail Removed)>
> >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.
> >
> >
> >

>



 
Reply With Quote
 
Daniel J Rodriguez
Guest
Posts: n/a
 
      12-06-2003
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:(E-Mail Removed)...
> 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]" <(E-Mail Removed)> wrote in message
> news:hCF$(E-Mail Removed)...
> > Mohammad,
> >
> > When you deploy an application, you should not deploy source code.
> >
> > Jim Cheshire, MCSE, MCSD [MSFT]
> > Developer Support
> > ASP.NET
> > (E-Mail Removed)
> >
> > This post is provided as-is with no warranties and confers no rights.
> >
> > --------------------
> > >From: "Mohammad Samara" <(E-Mail Removed)>
> > >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: <(E-Mail Removed)>
> > >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.
> > >
> > >
> > >

> >

>
>



 
Reply With Quote
 
G.Gnana Arun Ganesh
Guest
Posts: n/a
 
      12-09-2003
hai

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

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

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:(E-Mail Removed)...
>> 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]" <(E-Mail Removed)>

wrote in message
>> news:hCF$(E-Mail Removed)...
>> > Mohammad,
>> >
>> > When you deploy an application, you should not

deploy source code.
>> >
>> > Jim Cheshire, MCSE, MCSD [MSFT]
>> > Developer Support
>> > ASP.NET
>> > (E-Mail Removed)
>> >
>> > This post is provided as-is with no warranties and

confers no rights.
>> >
>> > --------------------
>> > >From: "Mohammad Samara"

<(E-Mail Removed)>
>> > >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: <(E-Mail Removed)>
>> > >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.
>> > >
>> > >
>> > >
>> >

>>
>>

>
>
>.
>

 
Reply With Quote
 
Jim Cheshire [MSFT]
Guest
Posts: n/a
 
      12-09-2003
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
(E-Mail Removed)

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

--------------------
>Content-Class: urn:content-classes:message
>From: "G.Gnana Arun Ganesh" <(E-Mail Removed)>
>Sender: "G.Gnana Arun Ganesh" <(E-Mail Removed)>
>References: <(E-Mail Removed)>

<hCF$(E-Mail Removed)>
<(E-Mail Removed)>
<(E-Mail Removed)>
>Subject: Re: Encrypting the source code
>Date: Tue, 9 Dec 2003 08:11:43 -0800
>Lines: 105
>Message-ID: <103b01c3be6f$232ee8f0$(E-Mail Removed)>
>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
>http://www.gotdotnet.com/team/csharp/tools/default.aspx
>
>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:(E-Mail Removed)...
>>> 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]" <(E-Mail Removed)>

>wrote in message
>>> news:hCF$(E-Mail Removed)...
>>> > Mohammad,
>>> >
>>> > When you deploy an application, you should not

>deploy source code.
>>> >
>>> > Jim Cheshire, MCSE, MCSD [MSFT]
>>> > Developer Support
>>> > ASP.NET
>>> > (E-Mail Removed)
>>> >
>>> > This post is provided as-is with no warranties and

>confers no rights.
>>> >
>>> > --------------------
>>> > >From: "Mohammad Samara"

><(E-Mail Removed)>
>>> > >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: <(E-Mail Removed)>
>>> > >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.
>>> > >
>>> > >
>>> > >
>>> >
>>>
>>>

>>
>>
>>.
>>

>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
several questions on encrypting the web.config file via VB code Keith G Hicks ASP .Net Security 0 04-05-2008 03:57 PM
Encrypting Java Code Mike Java 5 10-31-2005 10:23 PM
Data Recovery SOURCE CODE ( SOURCE CODES of Professional Data Recovery Software ) Author Tarun Tyagi Cisco 0 12-29-2004 05:03 PM
Encrypting the source code Mohammad Samara ASP .Net 3 12-05-2003 01:22 PM
Encrypting JS Code on wscript Jason Davis Javascript 1 09-13-2003 11:05 PM



Advertisments