473,394 Members | 1,770 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,394 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 2289
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.