Obfuscator
Collapse
This topic is closed.
X
X
-
cool2005Tags: None -
David Given
Re: Obfuscator
cool2005 wrote:[color=blue]
> I am looking for a javascript obfuscator that can
> turn javascript into a binary format but couldn't find one.[/color]
That's because it can't be done.
[color=blue]
> I noticed that the javascript grid control from EBA
> delivered as binary form.[/color]
If you mean the file referenced by this line:
<script language="JScri pt.Encode" src="ebagrid.js "></script>
....it's not Javascript; it's some proprietry thing that's only supported by
IE (the demo doesn't work under Firefox). And it's hardly secure; detailed
instructions on how to decode JScript.Encode files can be found here:
Obfuscating Javascript cannot be done. It's that simple. The client's
browser must be able to read the Javascript so it can execute it, and if
the browser can read it, humans can read it. The only thing that's worth
doing is *compressing* the Javascript, to reduce download times, but it's
easier, faster and more efficient to use the gzip transfer-encoding rather
than relying on any Javascript hacks.
The only thing obfuscating Javascript will do is to make your code less
reliable, more brittle, less compatible and generally waste everybody's
time --- please don't do it, it's antisocial.
--
+- David Given --McQ-+ "I've just had a terrible thought --- what if all
| dg@cowlark.com | Earthlike planets other than our own *do* look like
| (dg@tao-group.com) | Welsh quarries?" --- Coyu, on rasfw, while
+- www.cowlark.com --+ discussing _Blakes 7_
-
Lasse Reichstein Nielsen
Re: Obfuscator
"cool2005" <coolshare@yaho o.com> writes:
[color=blue]
> I am looking for a javascript obfuscator that can
> turn javascript into a binary format but couldn't find one.[/color]
Define "binary format".
Javascript, when passed to the browser, must be in a browser readable
format. Currently, that means plain text. IE supports some form of
"encryption " (which can be broken in two minutes of Googling), but
that means that no other browser can see the script.
[color=blue]
> I noticed that the javascript grid control from EBA
>
> http://developer.ebusiness-apps.com/...id/default.htm
>
> delivered as binary form.[/color]
Can you be more precise? What should I do to see a binary form of
the grid?
[color=blue]
> Can anyone suggestion an obfuscator converting javascript to
> binary?[/color]
No, sorry.
If you just want to make it unreadable (read: not as easily readable),
then you can probably find some, but I doubt it is worth the effort.
Obfuscation is an attempt at adding security. What is the threat you
are trying to protect against? What is the cost if the threat comes
through? What is the probability of that? That all decides how much
you should invest in prtection, both time and money. Again, I doubt
it is worth it.
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Comment
Comment