Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
How do I hide my JavaScript source code
Old 10-14-2008, 06:06 AM How do I hide my JavaScript source code
Junior Talker

Posts: 2
Trades: 0
Hi all

Please tell me
How do I hide my JavaScript source code

Thanks
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Amisha_Sharma is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2008, 06:31 AM Re: How do I hide my JavaScript source code
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
don't put it online.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-14-2008, 09:26 AM Re: How do I hide my JavaScript source code
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
You can't hide it, but you can compress it, which obfuscates the code. Here are a few easy to use compressors:

YUI Compressor - requires Java - very good compressor
Packer - creates the most confusing, and smallest code, but scripts don't run as fast as YUI - this can be used online though. Select 'Base62 encode' for maximum effect.
The Dojo Compressor I've never used this one, but it's on the top-list. It also requires Java.
JSMIN By Douglas Crockford, this one has a very simple algorythm, but it is still good. Meant to be used in combination with JSLint.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-15-2008, 01:01 AM Re: How do I hide my JavaScript source code
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by chrishirst View Post
don't put it online.
Lol, I thought that was really funny chris! I needed that one...
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 10-15-2008, 01:03 AM Re: How do I hide my JavaScript source code
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by Amisha_Sharma View Post
Hi all

Please tell me
How do I hide my JavaScript source code

Thanks
Actually, you can try encoding it, but believe me, people can still take what ever they want, even the most sophisticated 'trickster' out there can encode with the latest tools, but it won't last long, that is for sure. So the best way is the free way...Don't try to make it all 'yours'.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 10-15-2008, 01:08 PM Re: How do I hide my JavaScript source code
Average Talker

Posts: 19
Trades: 0
You can't hide it. The question is WHY to hide it?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
rirara is offline
Reply With Quote
View Public Profile Visit rirara's homepage!
 
Old 10-15-2008, 03:50 PM Re: How do I hide my JavaScript source code
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Of course, all of these obfuscators have the side effect of making your code impossible for you to debug.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 10-15-2008, 04:34 PM Re: How do I hide my JavaScript source code
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I never use them to obfuscate, only with the intention of speeding things up. Of course, I have to keep a debug version on hand...
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-15-2008, 05:39 PM Re: How do I hide my JavaScript source code
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
1) code it in php
2) Put them in a seperate folder (Ex. http://example.com/js/) And hide the contents from all from .htaccess [Oh wait, you can just save the website and get the .js files anyway...]
3) You can't
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Reply     « Reply to How do I hide my JavaScript source code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41276 seconds with 12 queries