Hiding JavaScript Source Code - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > JavaScript » Hiding JavaScript Source Code


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-19-2006   #1 (permalink)
Nazir
Member
 
Join Date: Jul 2006
Age: 48
Posts: 45
Default Hiding JavaScript Source Code

If you've ever created something that you're proud of, you'll understand the desire to protect your intellectual property. But JavaScript on the Web is an open-source language by nature; it comes to the browser in its source form, so if the browser can run read it, a person can read it.

There are a few applications on the web that claim to offer source-code encryption, but in reality; there's nothing you can do to encrypt source-code that another coder couldn't decrypt in seconds. In fact, some of these programs actually cause problems: they often reformat code in such a way as to make it slower, less efficient, or just plain broken. My advice? Stay away from them like the plague.

But still, the desire to hide code remains. There is something that you can do so obfuscate, if not outright encrypt, the code that your users can see.

Code that has been stripped of all comments and unnecessary whitespace is very difficult to read, and as you might expect, extracting individual bits of functionality from such code is extrimely difficult. The simple technique of compressing your scripts in this way can put-off all but the most determined hacker.

However, remember that improtant word-unnecessary. Some whitespace is essential, such as the single spaces after var and typeof.
Nazir is offline   Reply With Quote


Old 10-12-2006   #2 (permalink)
ScottHughes
Senior Member
 
Join Date: Sep 2006
Age: 22
Posts: 460
Default Re: Hiding JavaScript Source Code

I always use server-side codes whenever I can. I'm not a fan of JavaScript for that reason. For that reason, I've gotten in the habit of always making my pages .php files rather than .html.
__________________
ScottHughes is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding information from search engines austin Search Engine Optimization 6 10-11-2006 04:31 AM
Hiding and Removing the Portal Sysko Forum Management 1 03-20-2006 11:14 PM
Hiding and Removing the Portal Sysko Forum Management 1 03-20-2006 10:53 PM
C4d Render And Hiding Sig =) .Fussy Graphics & Multimedia 7 09-28-2005 12:44 AM


footer left
All times are GMT. The time now is 08:12 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Loans | Online Advertising | Photo Gallery | Free Myspace Layouts | Cheap Loan

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49