Solved

encrypt asp.net source code inclusing .aspx, Masterpage etc

Posted on 2008-06-23
3
1,593 Views
Last Modified: 2013-11-07
How to encrypt Asp.net source code including .aspx and masterPage file
0
Comment
Question by:Saroj13
  • 2
3 Comments
 
LVL 8

Expert Comment

by:Chumad
Comment Utility
I'm curious why you would want to do that? When you publish a website, all files that are .CS/.VB will be compiled into a DLL. People viewing the page have no way to see your source code (they can see the rendered HTML, but that's different than the code you write in ASP.NET.

Granted, if someone could download your source, they'd be able to decompile your DLL's. But unless you give them access to the DLL's or hack into your server, this won't happen. If you want, you can look into an obfuscator that will make your DLL's hard or impossible to decompile: http://net-dll-obfuscation.qarchive.org/
0
 

Author Comment

by:Saroj13
Comment Utility
how to hide javascript and stylesheet links present in the masterpage
0
 
LVL 8

Accepted Solution

by:
Chumad earned 500 total points
Comment Utility
Do you want to hide it from the end user who is viewing your site from a browser? If so, there's no way to do it. Your browser *has* to have that sent in clear-text, otherwise it cannot render it.

There are ways you can make it harder to obtain, but in the end, a smart or persistent person can get to the source no matter what you do.

For example, if you use the "disable right click" trick to make it so people can't view your source, all they'd have to do is disable javaScript and they could access it.  Another option is to simply look at the temporary internet files to see what source the browser used to render the page. In short, there's nothing you can do to keep your HTML/JavaScript/CSS safe from peering eyes.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now