Javascript obsfucation

https://news.ycombinator.com/item?id=112430
by ubudesign • 18 years ago
7 15 18 years ago

I know that you really can't do this and I never had the need for it until now. This is a very important piece of code and even if I patent it I'm sure someone would copy it. so the other option is to make it difficult for people trying it. Normally I don't care if someone copies my js. usually I have lots of back-end code mixed in with the script that even if someone copies, it wouldn't function. so this is the first time I need this.

Anyone here can recommend methods for hiding javascript? I know there are tools out there that do it and I'm researching that but what else can you do?

I was thinking of breaking the code into smaller sections. and serve the code as an stream through a servlet on a per-request basis and change things depending on conditions etc...

What else would you suggest?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com