Solved

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

Posted on 2008-06-23
3
1,600 Views
Last Modified: 2013-11-07
How to encrypt Asp.net source code including .aspx and masterPage file
0
Comment
Question by:Saroj13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

Suggested Solutions

Title # Comments Views Activity
Import a excel sheet in a grid 2 45
Help with viewing image in ReportViewer 14 32
Disable the weekends on datepicker control 6 52
Example code 13 43
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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