Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread Jonathan
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" <[EMAIL PROTECTED]>

To: "Jean-Marc Orliaguet" <[EMAIL PROTECTED]>
Cc: "zope user list" ; "Peter Bengtsson" <[EMAIL PROTECTED]>
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 )




___
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 )


Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread David H

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 )


Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread Jean-Marc Orliaguet

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


___
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 )


Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread Peter Bengtsson
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 <[EMAIL PROTECTED]> 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
___
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 )


Re: [Zope] Javascript obfuscator and Zope

2005-12-30 Thread Tino Wildenhain
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
___
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 )


Re: [Zope] Javascript obfuscator and Zope

2005-12-29 Thread David H

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

___
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 )


Re: [Zope] Javascript obfuscator and Zope

2005-12-29 Thread Jens Vagelpohl


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

___
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 )


[Zope] Javascript obfuscator and Zope

2005-12-29 Thread David H

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 )