Solved

How to make my JavaScript code unreadable by humans?

Posted on 2008-06-13
5
1,592 Views
Last Modified: 2010-04-21
I have JS scripts which should be protected. I need some on-fly PHP utility to encode my JS files before they are sent to the browser. Please, recommend one.
0
Comment
Question by:technoparkcorp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 48

Assisted Solution

by:hernst42
hernst42 earned 150 total points
ID: 21777051
See e.g: http://www.phpclasses.org/browse/package/1863.html
or google for "obfuscation javascript php"
0
 
LVL 4

Accepted Solution

by:
afzz earned 350 total points
ID: 21777102
0
 

Author Comment

by:technoparkcorp
ID: 21777111
Is it possible not only to PACK the code, but re-write it on fly? Like, rename the variables, functions, change punctuation, etc.
0
 
LVL 4

Expert Comment

by:afzz
ID: 21777143
yes it does exactly that
0
 

Author Closing Comment

by:technoparkcorp
ID: 31466861
Thanks, straight to the point.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Jquery Calculation 3 43
Different Javascript on iPhone than Win 10 desktop? 7 55
Pass a js value to an html form 5 43
How to send a javascript array via AJAX (jquery)? 3 43
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question