Connecting Tech Pros Worldwide Help | Site Map

Can I hide Javascript Code from users/client

Newbie
 
Join Date: Jul 2007
Posts: 2
#1: Jul 31 '07
So I used a puzzle that I made in a CS class and integrated it into a new site that I made for my University's tennis club. My professor saw it and asked that I take down the puzzle because it is the solution for an assignment that he will be giving out in the fall.

Basically my question is if there is a way to hide or mask or whatever my js code so that someone using firebug or the domInspector can't look at it (ie. to steal my work for their assignment)? Thanks a lot!
iam_clint's Avatar
Forum Leader
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 1,076
#2: Jul 31 '07

re: Can I hide Javascript Code from users/client


theres really not a good way to mask client side code.
Newbie
 
Join Date: Jul 2007
Posts: 2
#3: Jul 31 '07

re: Can I hide Javascript Code from users/client


Is there a way that could trick newbie coders? this is an entry calss, so really most-anything would help.
iam_clint's Avatar
Forum Leader
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 1,076
#4: Jul 31 '07

re: Can I hide Javascript Code from users/client


http://www.protware.com/

These guys have a "decent" way of hiding scripts from newbies. I figured out how to get the information from it pretty quickly but a newbie would probably have a much more difficult time.
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,126
#5: Aug 1 '07

re: Can I hide Javascript Code from users/client


hi ...

even when i hate that thing i know that sometimes there are good reasons for that ;) ... so i want to mention the 'search-phrase' that may point you in the direction for what you want, it is: 'obfuscated javascript' ;)

kind regards
Reply