Solved

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

Posted on 2008-06-23
3
1,597 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
ID: 21850018
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
ID: 21850094
how to hide javascript and stylesheet links present in the masterpage
0
 
LVL 8

Accepted Solution

by:
Chumad earned 500 total points
ID: 21850124
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 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