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
Solved

How to make my JavaScript code unreadable by humans?

Posted on 2008-06-13
5
1,562 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
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

860 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