.Net Component for obfuscating JavaScript?

Are there any .Net components for obfuscating JavaScript? I generate JavaScript dynamically and emit through ClientScript.RegisterClientScriptBlock. I would like it to be difficult for other people to view and modify this script.

Cautions:

  • Yes, I know that obfuscating JavaScript will be just a nuisance for a serious developer.
  • I intend to add (not obfuscated) copyright notices.
  • My C # program that generates JavaScript is my real added value. This source will not be available to viewers. However, I would like to hide the functions and data that it creates.

Thanks!

+5
source share
5 answers

Try using a YUI compressor for .Net. This does not confuse, but at least compresses. You use it as a dll.

http://yuicompressor.codeplex.com/

+3
source

You can refer to the Google Closure compiler from .NET, here is an example:

Or there is a .NET port of the YUI compressor:

+6
source

Ajax Minifier, , , , . .

+1
0

You can take a look at the Ajax Minifier , which was recently released by Microsoft and which they use internally.

0
source

All Articles