473,320 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

unreadable js code

Hi all,

I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?
I thought of using document.write(a_crypted_unreadable_string)... is it a
good idea ?
In fact, the code I want to make unreadable should generate html.

Thanks in advance,
--
alex
Oct 11 '05 #1
11 2285
alex wrote:
Hi all,

I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?
I thought of using document.write(a_crypted_unreadable_string)... is it a
good idea ?
In fact, the code I want to make unreadable should generate html.

Thanks in advance,
--
alex

One's desire to hide the source code is inversly proportional to its
quality.

--
Vladdy
http://www.klproductions.com
Oct 11 '05 #2
Vladdy wrote on 11 okt 2005 in comp.lang.javascript:
alex wrote:
I'd like to find a way to make a part of my code unreadable from
users when they look at the source of my web page.
One's desire to hide the source code is inversly proportional to its
quality.


So true,
but a simple advice could be given,
though highly ineffective but for restraining the most casual visitor.

Use an external jscript:
<script type='text/javascript' src='mySillySecret.js'></script>

This answers the OQ perfectly,
the page root wouldn't show the code at all. ;-)
In fact, the code I want to make unreadable should generate html.


It could.
However that html could be read pasting and using the IE command line:

javascript:alert(document.documentElement.outerHTM L)
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 11 '05 #3
thank you !
Oct 11 '05 #4
> I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?
I thought of using document.write(a_crypted_unreadable_string)... is it a
good idea ?
In fact, the code I want to make unreadable should generate html.


Understand that nothing can be hidden from the person who is capable
of understanding and exploiting your code. a_crypted_unreadable_string
is the really bad idea.

The only thing that works is to unplug your server. Every other
technique to hide your code will fail. There is no point in doing
things that fail. Focus instead on things that succeed.

http://www.crockford.com/javascript/jsmin.html
Oct 11 '05 #5
alex wrote on 11 okt 2005 in comp.lang.javascript:
thank you !


Thank who?

This is usenet, do please quote to establish what and who you are
responding on or to.

Many are reading and the connection to the older posting is not available
to everyone.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 11 '05 #6
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de news:
Xn********************@194.109.133.242...
alex wrote on 11 okt 2005 in comp.lang.javascript:
thank you !


Thank who?

This is usenet, do please quote to establish what and who you are
responding on or to.

Many are reading and the connection to the older posting is not available
to everyone.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


I meant thank you Evertjan.

--
alex
Oct 11 '05 #7
On 11 okt 2005, you wrote in comp.lang.javascript:
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de
alex wrote on 11 okt 2005 in comp.lang.javascript:
> thank you !
Thank who?

[..]
I meant thank you Evertjan.


Roger, roger ...
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 11 '05 #8
alex <al**@nospam.org> wrote in message news:43**********************@news.free.fr...
Hi all,

I'd like to find a way to make a part of my code unreadable from users when
they look at the source of my web page.
It is possible ?


Of course it's possible; I come across it all the time. Just copy the layout of
the poorer code examples posted on here. In fact the more of a beginner
you are, the easier you should find it.
--
S.C.
Oct 11 '05 #9
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news:
43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message news:43**********************@news.free.fr...
Hi all,

I'd like to find a way to make a part of my code unreadable from users when they look at the source of my web page.
It is possible ?


Of course it's possible; I come across it all the time. Just copy the

layout of the poorer code examples posted on here. In fact the more of a beginner
you are, the easier you should find it.
--
S.C.

well... I didn't really get your piece of advice.
could you precise a little more ?

--
alex
Oct 12 '05 #10
alex <al**@nospam.org> wrote in message news:43***********************@news.free.fr...
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news:
43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message

news:43**********************@news.free.fr...
Hi all,

I'd like to find a way to make a part of my code unreadable from users when they look at the source of my web page.
It is possible ?


Of course it's possible; I come across it all the time. Just copy the

layout of
the poorer code examples posted on here. In fact the more of a beginner
you are, the easier you should find it.
--
S.C.

well... I didn't really get your piece of advice.
could you precise a little more ?


So much of the code that one encounters is soo poorly laid-out that it would be
classed as unreadable, which is what you requested.

--
S.C.
Oct 12 '05 #11
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news:
43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message news:43***********************@news.free.fr...
"Stephen Chalmers" <ig******@lycos.co.uk> a écrit dans le message de news: 43**********@mk-nntp-2.news.uk.tiscali.com...
alex <al**@nospam.org> wrote in message

news:43**********************@news.free.fr...
> Hi all,
>
> I'd like to find a way to make a part of my code unreadable from users
when
> they look at the source of my web page.
> It is possible ?

Of course it's possible; I come across it all the time. Just copy the

layout of
the poorer code examples posted on here. In fact the more of a

beginner you are, the easier you should find it.
--
S.C.

well... I didn't really get your piece of advice.
could you precise a little more ?


So much of the code that one encounters is soo poorly laid-out that it

would be classed as unreadable, which is what you requested.

--
S.C.


Ok, I'll try my best to produce the worst js code ever ;-)
Oct 12 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Mike B | last post by:
How do you make it source your source code is unreadable? I went to a website and tried to look at their source, and it came up blank. I then saved the file and got a message saying something...
5
by: Mike M | last post by:
Hi all, Attempting to do css for cross platform/browser compatibility. Have an issue with IE6 sp1 running on NT4. When using IE6 sp1, example 1 works fine, example 2 produces unreadable text....
1
by: Chris Lutz | last post by:
i'm currently working on a windows xp machine with an english visual studio .net 2003 environment. when i connect to an oracle table using OracleClient-Objects (Connection, DataAdapter, Command)...
1
by: 2G | last post by:
Hi, When I serialize a object using the binaryformatter and save it to a file, the file contains some parts of unreadable junk. Should I do some encoding on the bytearray or something before...
1
by: Maurizio BELLANTONE | last post by:
When I select File | Print in order to print code results are unreadable: only header are ok, but code no. Thank you. (VS. NET 2003 Italian) -- ...
3
by: Won Lee | last post by:
I made my own from which is similiar to a MsgBox but allows for positioning on the screen. If I call the class from a button event it works fine. The form, however, becomes unreadable if I call...
5
by: barbara_dave | last post by:
Hi, all, I'd like to know if there a way to make the text file unreadable. I want the user to read file only in my program, but not allow to read files from outside of my program. How to do...
3
by: tom.henricksen | last post by:
We have a web page where application users are coping and pasting some text from WordPerfect or MS Word. We have noticed some of the characters are unreadable. These characters have special...
3
by: yogarajan | last post by:
hi Friends i want convert my javascript code to unreadable format anyone know pls help me it is very urgent
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.