Are there any .Net components for obfuscating JavaScript? I’m generating JavaScript dynamically & emitting via ClientScript.RegisterClientScriptBlock. I’d like to make it more difficult for others to view and modify that script.
Caveats:
- Yes, I know that JavaScript obfuscation will merely inconvenience a serious developer.
- I do intend to add (non-obfuscated) copyright notices.
- My C# program that generates the JavaScript is my real value-add. That source won’t be available to viewers. Nevertheless, I’d like to obscure the functions and data that it creates.
Thanks!
Try to use the YUI Compressor for .Net. It does not obfuscate, but it do compress at least. You use it as a dll.
http://yuicompressor.codeplex.com/