Javascript obfuscator and Zope
Hi list, I am wondering if anyone is obfuscating JavaScript using a python script or product. I did some googling but nothing cropped up. Seems like a nice idea unless the realities of javascript obfuscation make the exercise pointless. Any thoughts? David
On 29 Dec 2005, at 23:45, David H wrote:
Hi list,
I am wondering if anyone is obfuscating JavaScript using a python script or product. I did some googling but nothing cropped up. Seems like a nice idea unless the realities of javascript obfuscation make the exercise pointless.
That exercise is pointless no matter what technology you use to implement it. What is your supposed use case, why do you think it makes any sense? If you need processing that cannot be tampered with from the client side then pure server-side coding is preferable. jens
Jens Vagelpohl wrote:
On 29 Dec 2005, at 23:45, David H wrote:
Hi list,
I am wondering if anyone is obfuscating JavaScript using a python script or product. I did some googling but nothing cropped up. Seems like a nice idea unless the realities of javascript obfuscation make the exercise pointless.
That exercise is pointless no matter what technology you use to implement it. What is your supposed use case, why do you think it makes any sense?
If you need processing that cannot be tampered with from the client side then pure server-side coding is preferable.
jens
_____
Jens, Thanks for the reply. I kinda suspected the hostility to the idea. Anyone else? David
David H schrieb:
Hi list,
I am wondering if anyone is obfuscating JavaScript using a python script or product. I did some googling but nothing cropped up. Seems like a nice idea unless the realities of javascript obfuscation make the exercise pointless.
I'd just write good code and skip that obfuscation. It does not prevent someone from reading the source in any way. Have a nice day Tino
It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original: http://www.issuetrackerproduct.com/tw-sack.js More work can be done of course but I wanted to keep it relatively CPU fast. It works on CSS and HTML too: http://www.peterbe.com/stylesheet.css On 12/29/05, David H <bluepaul@earthlink.net> wrote:
Hi list,
I am wondering if anyone is obfuscating JavaScript using a python script or product. I did some googling but nothing cropped up. Seems like a nice idea unless the realities of javascript obfuscation make the exercise pointless.
Any thoughts?
David
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
Peter Bengtsson wrote:
It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer
It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original: http://www.issuetrackerproduct.com/tw-sack.js
More work can be done of course but I wanted to keep it relatively CPU fast. It works on CSS and HTML too: http://www.peterbe.com/stylesheet.css
there is "minjs" written in C too: http://www.crockford.com/javascript/jsmin.html this is a one-way process though, and this should also be compared with the effect of compressing files while serving them. /JM
Jean-Marc Orliaguet wrote:
Peter Bengtsson wrote:
It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer
It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original: http://www.issuetrackerproduct.com/tw-sack.js
More work can be done of course but I wanted to keep it relatively CPU fast. It works on CSS and HTML too: http://www.peterbe.com/stylesheet.css
there is "minjs" written in C too: http://www.crockford.com/javascript/jsmin.html
this is a one-way process though, and this should also be compared with the effect of compressing files while serving them.
/JM
Thanks Peter and Jean-Marc! I'll take a look at these. David
Whitespace and comment eliminators are good for minimizing file transfer sizes, but as a method to 'obfuscate' code they are not really effective as anyone can use a tool like http://www.polystyle.com to get easily readable code. Jonathan ----- Original Message ----- From: "David H" <bluepaul@earthlink.net> To: "Jean-Marc Orliaguet" <jmo@chalmers.se> Cc: "zope user list" <zope@zope.org>; "Peter Bengtsson" <peter@fry-it.com> Sent: Wednesday, January 04, 2006 2:28 PM Subject: Re: [Zope] Javascript obfuscator and Zope
Jean-Marc Orliaguet wrote:
Peter Bengtsson wrote:
It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer
It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original: http://www.issuetrackerproduct.com/tw-sack.js
More work can be done of course but I wanted to keep it relatively CPU fast. It works on CSS and HTML too: http://www.peterbe.com/stylesheet.css
there is "minjs" written in C too: http://www.crockford.com/javascript/jsmin.html
this is a one-way process though, and this should also be compared with the effect of compressing files while serving them.
/JM
Thanks Peter and Jean-Marc! I'll take a look at these. David _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (6)
-
David H -
Jean-Marc Orliaguet -
Jens Vagelpohl -
Jonathan -
Peter Bengtsson -
Tino Wildenhain