Solved

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

Posted on 2008-06-23
3
1,610 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

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

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

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.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

615 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