GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Mar-2004, 23:16
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about

A way to hide JavaScript Code


This is pretty interesting.... Although for a determined user, you could figure it out. Anyone care to try?

View it in IE6.0 before any other browsers.

Here is the page: http://hideit.siteexperts.com/

Far more challenging than any I have seen....
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
  #2  
Old 21-Mar-2004, 07:17
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
That's interesting... NOT!

Frankly, why people bother to disable right-click, hide their HTML source or even JavaScript is beyond me. Maybe they need to get a reality check soon.
  #3  
Old 21-Mar-2004, 08:59
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
lol...

Did you find the code? It isn't just a disabled right click...
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
  #4  
Old 21-Mar-2004, 09:11
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Quote:
Originally Posted by BobbyDouglas
lol...

Did you find the code? It isn't just a disabled right click...

What are you smoking Bobby?

Of course I know this has nothing to do with 'disabling the right-click' but to me, the people who waste their time doing stuff like these belong in the same category.

There are better ways to encrypt something; HTML and javascript are not one of those.
  #5  
Old 21-Mar-2004, 09:18
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
What would be a better way to encrypt Javascript code?

By the way, it isn't just HTML and Javascript. If you were able to see the code, you would know. But to me and you, it is still "hidden".

From what I understood, there is another asp file that writes out the encrypted code. If you look, the page keeps trying to load and load. It basically just goes back and forth and never stops.
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
  #6  
Old 21-Mar-2004, 09:21
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
OK, you're missing my point... You cannot encrypt javascript without the browser being able to decrypt it. Using JavaScript to send you to another page that encrypts and decrypts something is a whole different ball game.

So, NO you can't encrypt JavaScript period.
  #7  
Old 21-Mar-2004, 09:31
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
Well of course the browser will have to read it in order for it to work.

Are you able to find the javascript code for the specific alert?
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
  #8  
Old 21-Mar-2004, 09:39
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
No... I don't bother with stuff like this. I have my own encryption classes to refine. Look at the ones I used to re-direct users off each link on GIDWebHosts. It's the preferred way... the encrypted string is just not a URL, it contains an entire array of information/data that you wouldn't be able to decrypt no matter how much you try since the KEY is on the server and not on the client (i.e. the browser).

If you want to to 'break' that hidden javascript, all you have to do is focus on the headers being sent and received I would suspect... because at some point, the (hidden) javascript is sent to the browser in plain text!
  #9  
Old 21-Mar-2004, 11:15
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
I cant even tell that something is being encrypted lol.

Care to explain a little bit more about this? I find these type of things interesting, but lack the knowledge of PHP to do it.
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
  #10  
Old 22-Mar-2004, 08:23
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
I just created a very basic encryption / decryption class in php (using the mcrypt functions) that allows me to encrypt (or decrypt) anything I pass through it. I love it... it's actually one of the handful of scripts that survived my Linux 'melt-down' last year.

If you refer to the PHP Manual, they have some very simple examples there that you can easily follow.
 

Recent GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
We're looking for JavaScript codes / mini tutorials. JdS Web Design Forum 7 31-Mar-2008 23:25
Re: Formatting C / C++ code WaltP C Programming Language 1 06-Jan-2008 23:59
[Tutorial] How to hide e-mail address from SPAM Bots BobbyDouglas Web Design Forum 40 13-Feb-2006 09:44
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 09:16
This JavaScript doesn't work on Mozilla. JdS Web Design Forum 8 02-Jul-2003 14:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:44.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.