Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-23
3
Medium Priority
?
1,619 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 1000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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!
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Loops Section Overview
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

971 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