473,395 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to protect source code of an application

Hello!

At my company, we are in the process of deciding which programming
language to take between JSP and ASP.NET to produce dynamic web sites
for our clients. By now, all the major advantages tend to favor
ASP.NET : performance, good fit with SQL Server/Microsoft systems,
habilities of the development staff with VB.NET, ...

But there is still one point that gives me a break: I read some books
on ASP.NET in order to find something but I still have no clue. With
Java, I can write some classes(beans, servlets) and put the result in a
JSP page. All these classes will be compiled in a .class file (not a
..java file with the source), deployed on the client web server, and the
client will not be able to modify the core behaviour because they don't
have the source file (.java) and the only source files they have (.jsp)
are just HTML display.

Is there a standard in ASP.NET to write the code in a more
"object-oriented" way that won't let the client (on which the server is
installed) read and modify source code (at a certain layer because I
know you can't hide everything...)?

Thanks,

Melanie

Jun 8 '06 #1
4 4424
"melanie_23" <me***************@hotmail.com> wrote in message
news:11*********************@f6g2000cwb.googlegrou ps.com...
Is there a standard in ASP.NET to write the code in a more
"object-oriented" way that won't let the client (on which the server is
installed) read and modify source code (at a certain layer because I
know you can't hide everything...)?


http://www.c-sharpcorner.com/Code/20...ompilation.asp
Jun 8 '06 #2
In ASP.NET 2.0 you can precompile everything and deploy little more than DLL
files if that's your desire. If you're still paranoid about people
decompiling your DLLs then you can obfuscate them to make such a task very
difficult.

You can use the obfuscator that's built into ASP.NET 1.x and above, or you
could use one of these 3rd party obfuscators which generally claim to be
better:
http://www.lesser-software.com/ilobf.htm
http://www.junglecreatures.com/DesktopDefault.aspx
http://www.9rays.net/cgi-bin/compone...i?act=1&cid=86
http://www.remotesoft.com/salamander/obfuscator.html
http://www.semdesigns.com/products/o...bfuscator.html
http://www.wiseowl.com/products/products.aspx
http://www.abderaware.com/WhitePapers/Obfuscator.htm

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"melanie_23" <me***************@hotmail.com> wrote in message
news:11*********************@f6g2000cwb.googlegrou ps.com...
Hello!

At my company, we are in the process of deciding which programming
language to take between JSP and ASP.NET to produce dynamic web sites
for our clients. By now, all the major advantages tend to favor
ASP.NET : performance, good fit with SQL Server/Microsoft systems,
habilities of the development staff with VB.NET, ...

But there is still one point that gives me a break: I read some books
on ASP.NET in order to find something but I still have no clue. With
Java, I can write some classes(beans, servlets) and put the result in a
JSP page. All these classes will be compiled in a .class file (not a
.java file with the source), deployed on the client web server, and the
client will not be able to modify the core behaviour because they don't
have the source file (.java) and the only source files they have (.jsp)
are just HTML display.

Is there a standard in ASP.NET to write the code in a more
"object-oriented" way that won't let the client (on which the server is
installed) read and modify source code (at a certain layer because I
know you can't hide everything...)?

Thanks,

Melanie

Jun 9 '06 #3
Hi,

melanie_23 wrote:
Hello!

At my company, we are in the process of deciding which programming
language to take between JSP and ASP.NET to produce dynamic web sites
for our clients. By now, all the major advantages tend to favor
ASP.NET : performance, good fit with SQL Server/Microsoft systems,
habilities of the development staff with VB.NET, ...

But there is still one point that gives me a break: I read some books
on ASP.NET in order to find something but I still have no clue. With
Java, I can write some classes(beans, servlets) and put the result in a
JSP page. All these classes will be compiled in a .class file (not a
.java file with the source), deployed on the client web server, and the
client will not be able to modify the core behaviour because they don't
have the source file (.java) and the only source files they have (.jsp)
are just HTML display.

Is there a standard in ASP.NET to write the code in a more
"object-oriented" way that won't let the client (on which the server is
installed) read and modify source code (at a certain layer because I
know you can't hide everything...)?

Thanks,

Melanie


In addition to Steve's answer, I want to add that it is also extremely
easy to decompile Java class files.

The option of publishing the CS source files always sounded like a
strange idea to me, except in special cases (when you want to publish an
open source software, or when you're debugging maybe), so I would rather
precompile before publishing.

You might also want to check the Web Application Project
http://webproject.scottgu.com/

This allows you to have the same proven structure as in VS2003
(ASP.NET1.1). I personally prefer this way of doing things.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 9 '06 #4
Thank you all for your answers

In fact, I think that the compilation method explained in the link Mark
provided is just what I want to do.

It's interesting to know that you can obfuscate your code. I did not
know that. Thanks Steve.

Laurent, I will take a look at the link you provided because I really
wish to initiate a good development practice at the very beginning of
our development.

Thank you all

Melanie

Jun 9 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Frank Millman | last post by:
Hi all I am writing a multi-user accounting/business system. Data is stored in a database (PostgreSQL on Linux, SQL Server on Windows). I have written a Python program to run on the client,...
3
by: Narlen | last post by:
Hi there, I don't know much about web design but I proudly managed to password protect a page on my site. Later I realized that everyone looking at the source in any web browser can see the...
8
by: John | last post by:
Hello, How can i protect the source of my database. I have made a application and i want to distribute it but nobody must change the source. Pleause help me. Thank you. John
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
3
by: Ganesh Muthuvelu | last post by:
Hi, I have a ASP .NET application that we give to our clients for them to deploy it in their web server and use it. My concern is that all of my ASPX pages source code is open and our clients can...
3
by: yservel | last post by:
Hi everybody. I was just wondering how did editors were protecting their source code from decompilers and reverse engeneering. I heard one method of source code protection was by obfuscation: ...
22
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I protect my javascript code? ----------------------------------------------------------------------- ...
7
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I have an ASP.NET 2.0 web application which contains an Images directory with all website images. How can I prevent other websites from creating img tags with the source as my images? I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.