.Net Component for JavaScript Obfuscation?

后端 未结 5 1504
名媛妹妹
名媛妹妹 2021-01-13 13:13

Are there any .Net components for obfuscating JavaScript? I\'m generating JavaScript dynamically & emitting via ClientScript.RegisterClientScriptBlock. I\'d like to make

相关标签:
5条回答
  • 2021-01-13 13:52

    You can call out to Google's Closure Compiler from .NET, here's an example:

    • http://madskristensen.net/post/Use-Googles-Closure-Compiler-in-C.aspx

    Or there's a .NET port of the YUI Compressor:

    • http://www.codeplex.com/YUICompressor
    0 讨论(0)
  • 2021-01-13 14:05

    You could take a look at Ajax Minifier which was recently released from Microsoft and which they use internally.

    0 讨论(0)
  • 2021-01-13 14:07

    Maybe you can try JS cruncher or stunnix

    0 讨论(0)
  • 2021-01-13 14:10

    The Ajax Minifier mentioned above by Darin Dimitrov has been updated to include obfuscation as well as minification functionalities. It is also designed to work with your build and release process.

    0 讨论(0)
  • 2021-01-13 14:18

    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/

    0 讨论(0)
提交回复
热议问题