[Xitami] hiding *.js code
Samuel Trygger
xitami@lists.xitami.org
Thu, 16 Aug 2001 02:56:04 +0200
--=====================_268437271==_.ALT
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable
At 20:26 2001-08-15 +0200, Toernooi Assistent wrote:
>Would there be a way to hide *.js subroutines from simple browsing?
Nope. You can't. Not easily anyway. You could use some encryption routine=20
(such as those used by most VBScript virus creators) to obfuscate your=20
scripts and then a different routine to unobf=FAscate the code, once someone=
=20
calls a function in your script.
But, hey; You'll loose some of the original ideas about web publishing, and=
=20
no matter how well you try to obfuscate JavaScript, there'll always be=20
people who would be able to unobfuscate your obfucated code, because you=20
have to provide the unobfuscation mechanism somewhere...
If you want to make it truly hard for someone to grab your code, use server=
=20
side scripts. Preferably (if it should be beyond most code snatchers=20
knowledge) compiled ones...
/Samuel
------------------------------------
>> SAMUEL TRYGGER <<
------------------------------------
Mail: samuel@trygger.nu
Home: +46-(8)-99 63 73
Cell: +46-(070)-591 63 73
Job: +46-(8)-662 92 75
------------------------------------
>> HOMEPAGES AND MAIL <<
------------------------------------
Personal Pages:
http://www.comwell.se/samuel
http://samuel.trygger.nu/
http://www.dsv.su.se/~samuel-t
Job:
http://www.comwell.se/
s.trygger@comwell.se
------------------------------------
--=====================_268437271==_.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
At 20:26 2001-08-15 +0200, Toernooi Assistent wrote:<br>
<blockquote type=3Dcite class=3Dcite cite><font face=3D"arial" size=3D2>Woul=
d
there be a way to hide *.js subroutines from simple
browsing?</font></blockquote><br>
Nope. You can't. Not easily anyway. You could use some encryption routine
(such as those used by most VBScript virus creators) to obfuscate your
scripts and then a different routine to unobf=FAscate the code, once
someone calls a function in your script.<br><br>
But, hey; You'll loose some of the original ideas about web publishing,
and no matter how well you try to obfuscate JavaScript, there'll always
be people who would be able to unobfuscate your obfucated code, because
you have to provide the unobfuscation mechanism somewhere...<br><br>
If you want to make it truly hard for someone to grab your code, use
server side scripts. Preferably (if it should be beyond most code
snatchers knowledge) compiled ones...<br><br>
/Samuel<br><br>
<br>
<x-sigsep><p></x-sigsep>
------------------------------------<br>
>> SAMUEL TRYGGER <<<br>
------------------------------------<br>
Mail: samuel@trygger.nu<br>
Home: +46-(8)-99 63 73<br>
Cell: +46-(070)-591 63 73<br>
Job: +46-(8)-662 92 75<br>
------------------------------------<br>
>> HOMEPAGES AND MAIL <<<br>
------------------------------------<br>
Personal Pages:<br>
<a href=3D"http://www.comwell.se/samuel"=
eudora=3D"autourl">http://www.comwell.se/samuel</a><br>
<a href=3D"http://samuel.trygger.nu/"=
eudora=3D"autourl">http://samuel.trygger.nu/</a><br>
<a href=3D"http://www.dsv.su.se/~samuel-t"=
eudora=3D"autourl">http://www.dsv.su.se/~samuel-t</a><br><br>
Job:<br>
<a href=3D"http://www.comwell.se/"=
eudora=3D"autourl">http://www.comwell.se/</a><br>
s.trygger@comwell.se<br>
------------------------------------<br>
</html>
--=====================_268437271==_.ALT--