views:

89

answers:

2

Possible Duplicate:
.Net Component for JavaScript Obfuscation?

Anyone know a way to obfuscate javascript before it's outputted to the browser? I was using

http://www.javascriptobfuscator.com/

But I'm hoping there is a library that can do this on the fly.

Help appreciated.

A: 

Related: http://stackoverflow.com/questions/1880445/net-component-for-javascript-obfuscation

Jonathan
As stated above, compressing and obfuscating are totally different. Please see the link I posted for more info on what obfuscating is. Thanks.
James Jeffery
Is there a C# library for the YUI compressor? - accepted answer for link I've posted is a .NET port of the YUI compressor.As it is open source you could modify it to allow for turning compression on/off the same as it currently does for obfuscation.
Jonathan
A: 

The YUI compressor can perform obfuscation.

Duracell
Is there a C# library for the YUI compressor? I was looking at this from the previous post but found nothing on it.
James Jeffery
You would not want to be doing on-the-fly JavaScript obfuscation/compression. Better to employ a tool that does this pre- or post-build.
ErikHeemskerk